NeoSpace is an innovative startup that uses advanced Artificial Intelligence models to process massive volumes of corporate information. In the company's hallways, engineers often tell a classic joke: despite being experts at handling Big Data, the system's greatest nightmare is still the small dates entered incorrectly by users.
Recently, the platform started integrating data from new international clients. During data ingestion, the team noticed a serious problem in the interface: while the system expects the Brazilian Day/Month (DD/MM) format, many foreign users fill out the forms in the Month/Day (MM/DD) format.
To ensure the quality of the AI model, the pipeline must identify when an entry may cause confusion. For example, the value 1/6 is problematic, since it may be interpreted as June 1st or January 6th. The value 28/2, on the other hand, is safe, since there is no month 28 in the calendar. Also, a value such as 9/9 is safe: both interpretations refer to the same date.
Your task is to create an algorithm that analyzes the input provided by the user and determines whether the given numbers can lead to this double interpretation.
The input consists of a single line containing two integers $$$D$$$ and $$$M$$$ ($$$1 \leq D \leq 28, 1 \leq M \leq 12$$$) representing, respectively, the day and the month of the event.
Print DATA INCERTA if the date can be interpreted in Month/Day format as a different valid date, and DATA SEGURA otherwise.
28 2
DATA SEGURA
1 6
DATA INCERTA
9 9
DATA SEGURA
Explanation for example 3
The date can only be interpreted as September $$$9$$$.
| Название |
|---|


