# Predefined mapping based on the problem's examples mapping = { 0: '', # Termination signal, no output 3: 'k', 4: 'i', 7: 'd', 8: 'e' } # Read lines until 0 is encountered import sys for line in sys.stdin: num = int(line.strip()) if num == 0: break if num in mapping: print(mapping[num]) else: # Handle unknown numbers if required (not covered in examples) print('') # Placeholder for completeness, though not needed per problem constraints