link to the question: http://mirror.codeforces.com/contest/455/problem/A
language: python 2.7
submission: 15453370
Hello guys! I have encountered a very peculiar situation wherein my code works properly for 11 testcases but on the 12th testcase I get a runtime error.Please do look into the source code and suggest corrections.