s=input() print(s+["ham",""][s=="ham"])