Insane Problem Codeforces Solution In Python Which Library