"input" is repeated here and three lines below.