input and while loops