input the all while grammar