s = gets.chomp if 'ham' == s puts 'ham' exit 0 end puts s + 'ham'