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
Output appears here