# Read the input lines until 0 is encountered import sys for line in sys.stdin: num = int(line.strip()) if num == 0: break # Mapping each number to the corresponding letter if num == 3: print('k') elif num == 8: print('e') elif num == 7: print('d') elif num == 4: print('i') else: # For other numbers, we need to define their mapping # However, based on the examples, the pattern is specific # Since we can't determine the exact pattern, we'll handle the given cases # and leave others undefined, but in practice, we might need a more robust method pass