Insane Problem Codeforces Solution In Python Meaning