Medium
Election Winner
Read votes (candidate names) on one line. Print the winner and their vote count. If there is a tie, the name that comes first alphabetically wins.
Input
Names separated by spaces.
Output
One line.
Sample 1
Input
Mim Rafi Mim Sara Rafi Mim
Output
Mim 3
Sample 2
Input
Rafi Mim
Output
Mim 1
Output appears here