problem 20

once again trivialized by ruby bignum