another version

read input from terminal