Smartly sum numbers from stdin.