#CCBCMCHIN0000050. Cấp học theo lớp (School Level by Grade)

Cấp học theo lớp (School Level by Grade)

School Level by Grade

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given grade gg from 1 to 12, classify grades 1–5 as primary, 6–9 as lower secondary, and 10–12 as upper secondary.

Input

One integer gg denotes the grade.

Output

Print PRIMARY, LOWER, or UPPER.

Subtasks

  • Subtask 1 (20 points): Grade is between 1 and 5.

  • Subtask 2 (30 points): Grade is between 1 and 9.

  • Subtask 3 (50 points): Grade is between 1 and 12.

Examples

Example 1

Input

5

Output

PRIMARY

Explanation

For this input, the case-specific computation and the required exact output are shown above. Grade 5 is the last grade of the primary interval.

Example 2

Input

10

Output

UPPER

Explanation

For this input, the case-specific computation and the required exact output are shown above. Grade 10 is the first grade of the upper-secondary interval.