Page cover image

Borrowed Words

https://codeforces.com/group/cRJbcAFEwS/contest/487230/problem/B

Question

Abby joined Cody and informed her friend of Abakoda letters. Cody frowned.

Abby questioned Cody about the quandary that was vexing him. "I've quite the conundrum," said Cody. "We claim that Abakoda is a contest that is culturally Pilipino... but just consider all the hiram na titik that we find ourselves exhibiting!" he exclaimed.

"Hiram na titik?" Abby asked.

"You know, borrowed letters," Cody clarified. "The letters C, F, J, Q, V, X, Z come from foreigners, not the Filipino Abakada!"

Cody quickly zeroed in on a viable conclusion. "We must raze all words that contain exotic borrowed letters! Case insensitive, of course."

Given a single word, determine whether or not it contains any hiram na titik. As a reminder, these are the letters CFJQVXZ (and their lowercase forms).

Input Format

Input consists of a single line, containing a single word s.

Constraints

  • It is guaranteed that c is either an upper or lowercase English letter.

  • Ñ / ñ are not considered as they are special characters.

1≤len(c)≤101 \le len(c) \le 10

Output Format

Output a single line containing the answer.

  • If the word contains any hiram na titik, output FOREIGN

  • If the word contains no hiram na titik, output PINOY

Sample Inputs:

Input

Pilipino

Output

PINOY

Last updated