LCC '22 Contest 2 J1 - Re-leaf

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

Ethan's class is getting back one of Mr. Sun's ICS tests, notorious for being the toughest in the school. The test is out of 50. Mr. Sun dislikes decimal marks, so all grades are integers.

Ethan secretly took a peek at Mr. Sun's desk and knows the highest N scores, each with a score a_i. Unfortunately, he did not see his name beside any of these scores.

Ethan will be satisfied with a mark  \ge 90 \%. If Ethan still has a chance of getting \ge 90 \% output RELEAF. Otherwise, output PANIK.

Constraints

1 \le N \le 5

0 \le a_i \le X

Input Specification

The first line of input will contain the integer N.

The next N lines will contain an integer a_i.

Output Specification

Output RELEAF if Ethan still has a chance of getting \ge 90 \% and PANIK otherwise.

Sample Input 1

3
48
46
46

Sample Output 1

RELEAF

Explanation for Sample Output 1

The highest 3 scores are 48, 46, and 46. From this we can see that Ethan can get a score \le 46. Because \frac{46}{50} = 92 \% Ethan still has a chance of getting \ge 90 \%.

Sample Input 2

4
46
47
43
45

Sample Output 2

PANIK

Comments

There are no comments at the moment.