A solution to POJ 1654, use long long int.