Back to tasks
A time on the clock
BeginnerPython for kids 路 Lesson 28: Checking the data - before we calculate
Problem Statement
Read the hour, then the minutes. Print OK if it is a real time (the hour from 0 to 23 and the minutes from 0 to 59), otherwise BLAD.
Input Format
Two whole numbers: the hour and the minutes (-100..100), each on its own line.
Output Format
OK or BLAD.
Examples
Example 1
Input
12 30
Output
OK
Example 2
Input
24 0
Output
BLAD
Example 3
Input
9 60
Output
BLAD