ICPC Is Coming in Hot!

Limits 1s, 512 MB

Tanmoy is an ACM ICPC contestant. During practice he came across a problem named ‘OWLLEN’.

He has having trouble solving this problem so he asked his elder brother for clues. His brother told him that if he wants to solve this problem, he must know how to solve another problem.

Now, Tanmoy needs your help. You need to show him how to solve that problem.

You will be given a large number and you will have to determine which digit in that number has been used the most number of times. If two different digits occur the same number of times print the smallest one.


There will be only one line containing a large number NN (0<N<10100000 < N < 10^{10000}).


You will have to print the digit that has been used the most number of times in that number.