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

public class Main {
	public static void main(String args[]){
		Scanner stdIn = new Scanner(System.in);

		int[] intArray = new int[100];
		while(stdIn.hasNext()){
			intArray[stdIn.nextInt()-1]++;
		}
		int[] indexArray = indexOfMaxArrayNumber(intArray);

		for(int i:indexArray){
			System.out.println(i);
		}
	}
	//受け取った配列のなかで、最大の値を持っている要素の添え字＋１を配列にして返す
	//最大の値が複数あったときは、添え字＋１の値を小さい順に配列に格納して返す
	public static int[] indexOfMaxArrayNumber(int[] intArray){
		List<Integer> indexList = new ArrayList<Integer>();
		int max = 0;
		//intArrayの最大値を求める
		for(int i:intArray){
			max = Math.max(i, max);
		}

		for(int i = 0;i < intArray.length; i++){
			if(intArray[i] == max){
				indexList.add(i + 1);
			}
		}
		int[] indexArray = new int[indexList.size()];
		for(int i = 0;i < indexArray.length; i++){
			indexArray[i] = indexList.get(i);
		}
		return indexArray;
	}
}