n = input()
dum = input()
d = {}
for i in range(0,n+1):
x = raw_input()
x = x.split(" ")
d[int(x[0])] = int(x[1])
array = d.keys()
for key in d.keys():
if(d[key]!=0):
if(d[key] not in d.keys()):
for i in d.keys():
for j in d.keys():
if(i!=j and i!=key and j!=key):
if(i+j==d[key]):
# print str(i)+"-"+str(j)
if(i in array):
array.remove(i)
if(j in array):
# print j
array.remove(j)
else:
# print d[key]
array.remove(d[key])
print array[0]
When I execute this Python code I am getting "EOF error when reading input".
Can you please help? I am running Python 2.7.5
Error Traceback
Traceback (most recent call last):
File "prog.py", line 1, in <module>
EOFError: EOF when reading a line

5611 2121 031 5241 6161 0