← 返回 ibm 的题目列表Return the Last Lexicographical Substring
类型:online_judge
Return the Last Lexicographical Substring
Given a string s, return its last lexicographical substring.
Input
A single line string s of length in [1, 10^5], only containing lowercase letters.
Output
Return the last lexicographical substring of the string.
Example
Input
abcaz
Output
z
Input
abca
Output
ca
Example
Input
abcaz