N = gets.chomp if N == 'ham' puts N else puts N + 'ham' end