# Arup Guha
# 1/3/2022
# Solution to 2021 UCF HS Online D1/D2 Problem: Emojitype Spelling

nC = int(input(""))

# Go through all cases.
for loop in range(nC):

    # Read name.
    name = input("")

    freq = [0]*26
    flag = True

    # Go through each letter.
    for i in range(len(name)):

        # Add 1 to appropriate frequency.
        idx = ord(name[i])-ord('A')
        freq[idx] += 1

        # Mark if we got a repeat.
        if freq[idx] > 1:
            flag = False

    # Print the appropriate output.
    if flag:
        print("Emote away!")
    else:
        print("Nope")
