Fixed a bug occuring with python3.

input became raw_input in python3, so we needed to cast int values