Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×
C. Conner Reading Session
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Conner is an avid reader. He knows there are two main reasons for reading a good book: first, to enjoy it, and second, to boast about having read it.

However, he faces a problem: every book he has takes time to read. Furthermore, his university library has adopted a policy that allows him to read any book, provided the following conditions are met:

  1. At most, he can have one book on loan; for instance, to borrow a second book, he must have returned the first one.
  2. A book can only be borrowed if it is within the librarian's working hours (from 8 am to 4 pm, for a total of 480 minutes).
  3. If a book is borrowed and not finished by 4 pm, it can be returned later, but the library closes its doors at 9 pm (300 minutes after the librarian's working hours end).

Conner wishes to respect all the rules. He knows that it takes him 3 minutes to read one page (it can be assumed that all pages take the same amount of time to read).

Given a list of books, each with its number of pages, a value indicating how enjoyable it is for Conner, and a number indicating its fame (for which Conner could boast about having read it), you must calculate two values: first, the maximum enjoyment value Conner can achieve from reading, and second, the maximum fame value he can accumulate. All readings must be complete to count and must be done in a single day. If the enjoyment is greater than the fame, then indicate to Conner that he should read for enjoyment; if the opposite is the case, indicate that he should read for fame.

Input

The first line contains a number $$$N$$$ ($$$1\leq N \leq 10^3$$$)

The second line contains $$$N$$$ integer numbers separated by space, indicating the number of pages of the books. $$$1\leq B_i \leq 10^3$$$

The third line has the $$$N$$$ numbers, indicating the pleasure $$$P$$$ $$$1\leq P_i \leq 10^3$$$ that the $$$i-th$$$ book may give

The fourth and last line has the fame of each book, so there are $$$N$$$ integers according to the fame that the book has. $$$1\leq F_i \leq 10^3$$$

Output

Print a single line with the word "EITHER" if the fame and pleasure are the same, "FAME" if Conner would rather the fame, or "PLEASURE" if he would rather pleasure.

Example
Input
4
150 6 5 50
1 2 1 1
1 1 1 1
Output
PLEASURE