Getting EOF error in while taking input in Python

I am trying to solve the practice problem and every time i use raw_input() or input() to take input it is giving EOF error. I tried everything but all in vain. If I run same code on my machine it is working fine.
Please tell me how to remove this error

if u are taking a input like array in a line like
1 2 3 4 5
or
1
2
3
4
5
these re diff. in python for the first one take input like input().split(’ ') but now are the input will be as string and for second one take input simply. if not work then post the question too.