7 Up 7 Down

Beginner

Given a number, you have to determine if the number is greater than 7, equal to 7, or less than 7.

Input Format

The first line indicating the number of test cases - T.

Next T lines will each contain a single number ni.

Output Format

T lines, one for each test case.

"UP" - If the number given is greater than 7

"DOWN" - If the number given is smaller than 7

"EQUAL" - If the number given is equal to 7

Examples

Sample Input

3
12
7
45

Expected Output

UP
EQUAL
UP

Constraints

0 < T < 100000
0 <= ni <= 100000

Editorial Link: Editorial