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.Arrays;
import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int[] a = new int[100];
		int count=0,maxcount=0;
		while(cin.hasNext()){
			a[count++]=cin.nextInt();
		}
		int[] b = new int[count];
		for(int i = 0; i < count;i++){
			b[i]=a[i];
		}
		Arrays.sort(b);
		int[][] hyou = new int[100][2];
		int cnthyou=0;
		for(int i = 0; i < b.length;){
			int dx = 1;
			count=1;
			while(true){
				if(i + dx == b.length){
					break;
				}
				if(b[i] == b[i+dx]){
					dx++;
					count++;
				}
				else{
					break;
				}
			}
			hyou[cnthyou][0]=b[i];
			hyou[cnthyou][1]=count;
			maxcount = Math.max(maxcount, count);
			i += dx;
			cnthyou++;
		}
		for(int i = 0; i < cnthyou; i++){
			if(hyou[i][1]==maxcount){
				System.out.println(hyou[i][0]);
			}
		}
	}

}