The input is not being seen as a number or integer.
Make sure that the input is being seen as an integer, use:
int( )