Python EOF error when reading input
<pre><code>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]
</code></pre>

<p>When I execute this Python code I am getting "EOF error when reading input".</p>

<p>Can you please help? I am running Python 2.7.5</p>

<p>Error Traceback</p>

<pre><code>Traceback (most recent call last):
File "prog.py", line 1, in &lt;module&gt;
EOFError: EOF when reading a line
</code></pre>