title: HackerEarth Runtime Error - NZEC in Python 3
body: <pre><code>N = int(input())
  
  list = []
  
  while(N&gt;0):
  
      n = int(input())
      list.append(n)
      N = N-1
  
  Q = int(input())
  
  while(Q&gt;0):
  
      check = int(input())
      count = list.count(check)
      if(count==0):
          print("NOT PRESENT")
      else:
          print(count)
      Q = Q-1
  </code></pre>
  
  <p>The above is the code I wrote in hackerearth. I get response as a runtime error. But when I try in my ubuntu python console it works perfect</p>