Random-Python Code. You may find some solution to codechef problem