Changed the way inputs are handled. Now, the program receives strings and
converts them to ints.