title: Getting data type as <class Map> instead of int
body: <p>I'm relatively new to Python and have been trying to solve some competitive programming problems on HackerRank. In order to receive input, I have to take it from "stdin", and hence I used it successfully in one problem as: </p>
  
  <pre><code>...
  n,m = map (int, stdin.readline().rstrip().split())
  coins=[]
  
  coins=[int(n) for n in stdin.readline().rstrip().split()]
  ...
  </code></pre>
  
  <p>which would take input of :</p>
  
  <p>4 3 <p>
  1 2 3</p>
  
  <p>and store 4, 3 in n and m respectively as integer data types and 1,2,3 in a list.</p>
  
  <p>However in a new program I tried the following:</p>
  
  <pre><code>from sys import stdin,stdout
  
  n = map (int, stdin.readline().rstrip().split())
  arr=[]
  
  for i in range (n):
      x= map(int, stdin.readline().rstrip().split())
      arr.append(x)
  </code></pre>
  
  <p>The aim is to take an integer n from first line, and then read the following n lines containing one integer, and storing these integers in a list called arr. 
  This throws a runtime error that says that n is a class map object, not integer. </p>
  I tried using type(n) for both cases, and while the first returns int, the second returns map object. How do I fix my code and get my expected input?        </p>