Chữ số lớn nhất (THT'14; HSG'17)

View as PDF



Author:
Problem types
Points: 100 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Nhập vào từ bàn phím một số nguyên dương \(n\) \((n≤10^{16})\). Hãy tìm và in ra màn hình chữ số lớn nhất của số \(n\).

Input

  • Số nguyên dương \(n\)

Output

  • Kết quả của bài toán

Example

Test 1

Input
70128 
Output
8

Comments