How to handle the long values?

how to handle case of long values as in 2nd input of program 100000000000000 which is giving 31 output

Hey,take long long it will work