Off topic(since it's not about C/Java), but Python has a long integer type which won't over/underflow unless you run out of memory.
% python
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> i = long(9999999999999999999999999999999)
>>> i
9999999999999999999999999999999L
>>>