Faxen Words

View as PDF

Points: 5
Time limit: 1.0s
Memory limit: 16M

Authors:
Problem type
Diagnostic Test 2016 Level 1

Even types of words are rather different in Croneria. A noun to them is a word that starts with a capital letter that isn't a vowel. A verb to them is a word that starts with a capital letter that is a vowel. An adjective is a word that does not start with a capital letter.

The way they classify words is weird too. A word is an odd adjective if it's an adjective and its third character is a consonant. A word is a fancy noun if it's a noun and its fourth character is a vowel. A word is a boring verb if it's a verb and its fifth character is either x, y, z, or q.

As per usual, the students have turned to you for help. Given a word that is guaranteed to be at least 5 characters, output what word types the word is.

Sample Input 1

Chemistry

Sample Output 1

noun

Sample Input 2

Screaming

Sample Output 2

noun
fancy noun

Sample Input 3

abcde

Sample Output 3

adjective
odd adjective