Easy problem but requires big integer. Used Java cause I'm lazy...