# No.423 ハムスター語初級(数詞) n = int(input()) s = '' while n != 1: if n % 2 == 0: s = 'ham' + s else: s = 'hamu' + s n //= 2 print('hamu' + s)