main = do s <- getLine putStrLn $ if s == "ham" then "ham" else s ++ "ham"