Problem: Suppose you have a string S which has length N and is indexed from 0 to N−1. String R is the reverse of the string S. The string S is funny if the condition |Si−Si−1|=|Ri−Ri−1| is true for every i from 1 to N−1.

(Note: Given a string str, stri denotes the ascii value of the ith character (0-indexed) of str. |x| denotes the absolute value of an integer x)

SAMPLE INPUT
2
acxz
bcxz

SAMPLE OUTPUT
Funny
Not Funny

Explanation

Consider the 1st testcase acxz :

c-a
=
x-z
= 2

z-x
=
a-c
= 2

Consider the 2st testcase bcxz

|c-b| != |x-z|

Solution (in PYTHON):

Solution:
from sys import stdin
import os

FUNNY_STR = 'Funny'
NOT_FUNNY_STR = 'Not Funny'


def reverse(str_to_reverse):
    i = len(str_to_reverse) - 1
    new_reversed_str = ''
    while i >= 0:
        new_reversed_str += str_to_reverse[i]
        i -= 1
    return new_reversed_str


def is_funny(test_str):
    i = 1
    reversed_test_str = reverse(test_str)
    while i < len(test_str):
        a = abs(ord(test_str[i]) - ord(test_str[i-1]))
        b = abs(ord(reversed_test_str[i]) - ord(reversed_test_str[i-1]))
        if a != b:
            return False
        i += 1
    return True


def is_funny_str(is_funny_bool):
    if is_funny_bool:
        return FUNNY_STR
    else:
        return NOT_FUNNY_STR


def main():
    line_list = [line.rstrip(os.linesep) for line in stdin.readlines()][1:]
    for line in line_list:
        print(is_funny_str(is_funny(line)))


if __name__ == '__main__':
    main()