eolymp
bolt
Try our new interface for solving problems
Problems

Senior symbol

Senior symbol

There is a string of Latin letters. Find and print the highest letter (the character that has the largest ASCII code), as well as the number of times it is repeated in a string.

Input

One line that consists of no more than 200 Latin letters.

Output

Print the highest letter and the number of its repetitions.

Time limit 1 second
Memory limit 128 MiB
Input example #1
SOS
Output example #1
S 2
Author "ABC programming"
Source Matviychuk Sergiy Volodymyrovych