BigInteger mod, read problem carefully