Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently.



Input

A sequence of integers ai (1 ≤ ai ≤ 100). The number of integers is less than or equals to 100.

Output

Print the mode values. If there are several mode values, print them in ascending order.

Example

Input

5
6
3
5
8
7
5
3
9
7
3
4


Output

3
5
import java.io.*;
import java.math.*;
import java.util.*;

class Main
{
	private static void logging(int x) {System.out.println(x);}

	public static void main(String[] args)throws IOException
	{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String line;
		int keep,mx=0;
		int count[]=new int[1000];
		int ans[]=new int[1000];

		while((line=input.readLine())!=null)
		{
			keep=Integer.parseInt(line);
			count[keep]++;
			mx=Math.max(mx,keep);
		}

		int count_mx=0; 
		for(int i=0;i<=mx;i++)count_mx=Math.max(count[i],count_mx);

		int count_ans=0;
		for(int i=1;i<=mx;i++)
		{
			if(count_mx==count[i])
				ans[count_ans++]=i;
		}
		for(int i=0;i<count_ans;i++)logging(ans[i]);
	}
}