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.util.*;
import java.util.Map.Entry;
import java.lang.*;
import java.math.*;
import java.io.*;

import static java.lang.Math.*;
import static java.util.Arrays.*;

public class Main{

	Scanner sc;

	static final int INF=1<<28;
	static final double EPS=1e-9;

	class R{
		int r=0;
	}

	void run(){
		sc=new Scanner(System.in);
		HashMap<Integer, R> map=new HashMap<Integer, R>();
		for(; sc.hasNext();){
			int n=sc.nextInt();
//			if(n==0)
//				break;
			if(!map.containsKey(n))
				map.put(n, new R());
			map.get(n).r++;
		}
		int m=0;
		for(Entry<Integer, R> entry : map.entrySet()){
			m=max(m, entry.getValue().r);
		}
		LinkedList<Integer> list=new LinkedList<Integer>();
		for(Entry<Integer, R> entry : map.entrySet()){
			if(entry.getValue().r==m)
				list.add(entry.getKey());
		}
		Integer[] arr=list.toArray(new Integer[0]);
		Arrays.sort(arr);
		for(int a : arr)
			println(a+"");

		sc.close();
	}

	void print(String s){
		System.out.print(s);
	}

	void println(String s){
		System.out.println(s);
	}

	public static void main(String[] args){
		new Main().run();
	}
}