gets needs STDIN as well here; use STDOUT for conformity