I tried many different problems. All worked good in Terminal but when I submit it on SPOJ it shows runtime error(NZEC) in python