digit_to_char = { 0: 'o', # Assuming 0 maps to 'o' if needed, but 0 is the termination signal 1: 'v', 2: 'e', 3: 'k', 4: 'i', 5: 'j', 6: 'm', 7: 'd', 8: 'e', 9: 'f' } while True: try: n = int(input()) if n == 0: break print(digit_to_char[n]) except EOFError: break