Use bufio to read from stdin.