LearnPy Hub
← Arena
EasyRating 1000

Funny String

List |code(s[i]) − code(s[i−1])| for the word and for its reverse. Print Funny if the two lists are equal, otherwise Not Funny.

Input

One word.

Output

Funny or Not Funny.

Sample 1

Input
acxz
Output
Funny

Sample 2

Input
bcxz
Output
Not Funny
solution.py
Output appears here
Funny String · Python Arena problem · LearnPy Hub