Moda#8700

Moda

1 second
128 megabytes
Very easy

Integers from to are given. The numbers are entered till . Print the number that appears most often and the number of its repetitions. It is known that only one digit is repeated most often.

Input

Each line contains one digit , , , , .

Output

In the first line print the number that appears most often. In the second line print the number of its repetitions.

Examples

Example 1

Loading
Loading

Note

The solution to this problem can be modeled by the behavior of the Codey Rocky robot, which recognizes color cards marked with digits .