title: How can I convert an entire line of input into an integer in Ruby?
body: <p>I want to give integer input to Ruby like this:</p>
  
  <pre><code>12 343 12312 12312 123123 231
  12 343 12312 12312 123123 243
  12 343 12312 12312 123123 2123
  </code></pre>
  
  <p>This whole thing should be taken as a number so that I can sort all of them and if there is any repeating numbers I want to print them.  The whole line should be treated as an integer for comparison with the other lines.  I am not able to take the input into one integer, for each of those lines it gives me 12.  How can I accomplish this?</p>