added $ to input on line 118

there was a missing $ before he input resulting in it being undefined