Conditional operator




Task
Time limit: 1000 ms,
Memory limit: 256 Mb

The choosy bride when choosing grooms is guided by the rule: "the suitor should be older than her, but not by much." According to the known ages of the bride - \(N\) years and grooms: \(R\) years, \(F\) years and \(S\) years (all grooms of different ages are different and more than the age of the bride), determine which one she will choose - first, second or third
Input: Four integer numbers are input to the program, one per line
in the first line is the age of the bride
in the next three - the age of the suitors (R, F, and S, respectively).
Output: print the letter of the groom (R, F or S), which the bride will choose.

Logical operators (or, and, not) cannot be used in a program

Example
Input Output
1 25
26
27
28
R

Prohibited statements:else;and;or;not;min;max

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: