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.*;

class Main {
  public static void main(String[] args){
    Scanner cin = new Scanner(System.in);
    MyArray myArray = new MyArray(110);
    
    while(cin.hasNext()){
      myArray.add(cin.nextInt());
    }
    myArray.mode();
  }
}

class MyArray {
  private int num[];
  private int size = 0;
   
  MyArray(int n){
    this.num = new int[n];
  }
 
  protected void sort(){
    Arrays.sort(num);
  }
 
  protected int top(){
    if (size == 0) {
//      System.out.println("empty");
      return (0);
    }
    return (num[size - 1]);
  }
 
  protected void pop(){
    for (int i = size - 1; i > 1; i--){
      num[i] = num[i - 1];
    }
  }
 
  protected void add(int n){
    num[n]++;
  }
 
  protected int at(int n){
    return (num[n]);
  }

  protected void mode(){
    int max = 0;
    for (int i = 1; i < 101; i++){
      max = Math.max(max, num[i]);
    }
    for (int i = 1; i < 101; i++){
      if (max == num[i]){
        System.out.println(i);
      }
    }
  }
}