Maximum digit in a number
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the maximum digit in a positive integer n.
Input
One positive integer n (n < 10^18
).
Output
Print the maximum digit in a positive integer n.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 11K
Acceptance rate 60%