Problem 111 is solved for Int. Still need to make a Long (should be enough) implementation.