#CCBCMCHIN0000028. Ưu tiên ba cảnh báo (Three Alert Priorities)

Ưu tiên ba cảnh báo (Three Alert Priorities)

Three Alert Priorities

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

A device reports temperature tt, pressure pp, and battery level bb. Print exactly one message with this priority: HEAT if t≥80t\ge80; otherwise PRESSURE if p≥80p\ge80; otherwise BATTERY if b<20b<20; otherwise OK. Higher-priority alerts override lower-priority ones.

Input

Three integers tt, pp, and bb denote temperature, pressure, and battery level, respectively.

Output

Print exactly one of HEAT, PRESSURE, BATTERY, OK.

Subtasks

  • Subtask 1 (20 points): All values are in [0,100][0,100], with t<80t<80 and p<80p<80.
  • Subtask 2 (30 points): All values are in [0,100][0,100], with t<80t<80.
  • Subtask 3 (50 points): All values are in [0,100][0,100].

Examples

Input

90 90 10

Output

HEAT

Explanation

Since temperature 90≥8090\ge80, the highest-priority alert is active. The pressure and battery conditions also hold, but the output is only HEAT.