Not sure if was drunk or just lazy when I used input instead of output...