Лимит времени 1000/4000/4000/4000 мс. Лимит памяти 32000/65000/65000/65000 Кб.
Problem description
John wants to change the door lock with a password protected lock with display. He wants to open the door by entering any 4 digit number with different digits or with sum of digits equal to 13. When the door opens "ENTER" must be written on the display. Entering any other 4 digit number must display "LOCK". Entering number with less or more than 4 digits results with "ERROR" title. All he needs now is a program which will output these 3 messages according to his rules.
Input
A single integer N (1 ≤ N ≤ 100000).
Output
One of the following words: "ENTER", "LOCK", "ERROR".
Example
| stdin |
stdout |
13 |
ERROR |
| 1234 |
ENTER |
| 2343 |
LOCK |
Для отправки решений необходимо выполнить вход.
|