Also, using input as your variable name here shadows the builtin input function.