Problem AY: 四位数中最大的数字

Problem AY: 四位数中最大的数字

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

SubmitProblemList

Description

小酷想知道自己输入的整数x中最大的那个数字是哪个。

Input

输入只有一行,包含一个整数x(999<x<10000)。

Output

输出一行,找到x中的最大数字。

Sample Input Copy

5689

Sample Output Copy

9