change the input method in 5-1.c