Submit solution

Points: 5
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

While surfing the internet, you have discovered a brand new word!

The word yesnt has the meaning of no. Similarly, nont has the meaning of yes. When the suffix nt is added multiple times, the meaning of the words alternate between yes and no. For example, the word yesntnt has the meaning of yes.

To help you surf the internet in the future, write a program that determines if a phrase means yes or no.

Input Specification

On a single line, the word yes or no is followed by a number of nt, where there are at most 1000 suffixes.

The line is terminated with a .

Output Specification

Output whether the phrase has a meaning of yes or no.

Sample Input

yesntntnt.

Sample Output

no

Sample Input 2

no.

Sample Output 2

no

Sample Input 3

nont.

Sample Output 3

yes

Comments

There are no comments at the moment.