EOFError Python

Sir please see the screenshot of the error along with the code in it and help me out … This code is running fine on an online IDE but its giving error on Coding Blocks IDE, I have googled the Error and Stack Overflow suggested to use raw_input() but again its no use ! Please help me out