Compilation error on codechef but runs well and fine on IntelliJ IDE

I am getting this error on codechef but works fine my local machine.
Main.java:23: error: TWO has private access in BigInteger
result = result.multiply(fiftytwo.modPow(new BigInteger(Li).divide(BigInteger.TWO),mod));
^
Main.java:30: error: TWO has private access in BigInteger
result = result.multiply(fiftytwo.modPow(new BigInteger(Li).divide(BigInteger.TWO).add(BigInteger.ONE),mod));
^
2 errors