#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 , pressure , and battery level . Print exactly one message with this priority: HEAT if ; otherwise PRESSURE if ; otherwise BATTERY if ; otherwise OK. Higher-priority alerts override lower-priority ones.
Input
Three integers , , and 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 , with and .
- Subtask 2 (30 points): All values are in , with .
- Subtask 3 (50 points): All values are in .
Examples
Input
90 90 10
Output
HEAT
Explanation
Since temperature , the highest-priority alert is active. The pressure and battery conditions also hold, but the output is only HEAT.