Олимпиадный тренинг

Задача 3990. Maximum digit of a number


Given a four-digit number. Determine the maximum digit of the number.

Input
The input is a positive four-digit number.

Imprint
Display the answer to the problem.
 

 

Example
# Input Output
1 4731 7