Back to tasks
A day of the month
BeginnerPython for kids 路 Lesson 28: Checking the data - before we calculate
Problem Statement
Read a day number. Print OK if it can be a day of the month (from 1 to 31), otherwise BLAD.
Input Format
One whole number n (-1000 <= n <= 1000).
Output Format
OK or BLAD.
Examples
Example 1
Input
31
Output
OK
Example 2
Input
32
Output
BLAD