Convert all lines/strings to integers...

First attempt was wrong because we were comparing strings.
Also, additional input examples added.