title: Code runs in spyder but not in online test?
body: <p>I am trying to solve a problem in Hackerrank, the code runs fine in Spyder, but throws a runtime error when I run it in their online testing window.</p>
  
  <pre><code>N = int(raw_input())
  myDict = {} 
  
  for i in range (N) :
      element = raw_input().split()
      myDict[element[0]]=element[1]
  
  queries = []
  
  while True:
      query = map(str,raw_input().split())
      queries.append(query)
  
  for j in range(len(queries)):
      NF = True 
      for name in myDict:    
          if queries[j][0] == name : 
              print name + '=' + myDict[name]
              NF = False 
      if (NF):
          print 'Not found'
  </code></pre>
  
  <p>This code runs fine and passes the test case (which is input from the keyboard in Spyder). When I try to run it against the following test case in Hackerrank's online testing window, on the following inputs: </p>
  
  <pre><code>3
  sam 99912222
  tom 11122222
  harry 12299933
  sam
  edward
  harry
  </code></pre>
  
  <p>I get a runtime error: </p>
  
  <pre><code>Traceback (most recent call last):
  File "solution.py", line 13, in &lt;module&gt;
  query = map(str,raw_input().split())
  EOFError: EOF when reading a line
  </code></pre>
  
  <p>I think something is wrong with the way it is reading the final line of the input, but I don't know to fix it. </p>