Problem 10925 (Krakovia) solved using BigInteger from Java.math
Remove .class files