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

A three-digit number is given. Determine which of its digit is greater: second or last. Display the larger of these two digits.

Input: one number is input (100 <= n <= 999)
Output: output the answer to the task
 
Example
Input Output
1 354 5

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: