Bikash, an aspiring programmer, aims to create an Artificial Intelligence program capable of solving a wide range of mathematical problems.
However, during the initial development stage, he encountered a limitation. The program can only handle sets of three small numbers within a specific limit. So he named it SmallAI. Recognizing the need to enhance SmallAI's capabilities, Bikash seeks your assistance.
Your task is to evaluate whether SmallAI can handle a given set of three numbers, , and . It is important to note that SmallAI can only work with numbers that are less than or equal to a specific limit, denoted by .
Write a program that determines whether SmallAI can work with all the provided numbers or not.
The input consists of a single line containing four space-separated integers: , , , and — The variable denotes the limit of SmallAI, while , , and represent three integers that AI can work with, respectively.
Print "OK" if SmallAI can handle all the provided numbers. Otherwise, print "ERROR".
Input | Output |
---|---|
10 5 8 12 | ERROR |
In the first example: The limit of SmallAI is . The given set of numbers are , , and . SmallAI can easily process and because, and , but as , SmallAI cannot process all of the provided numbers. Therefore, the output is "ERROR". |
Input | Output |
---|---|
10 4 5 6 | OK |