If the numbers are first on a new line and end with a space, read the line and split it, the number will be the first element in the array.