A three-digit number is given. Which number is bigger, the second or the last (if you count the numbers from left to right)? Output the largest of these digits.

Input format
A single natural number (100<=n<=999) is input. All digits of the number are different.