Use long long types to avoid overflow

4 files changed