#include <iostream>
#include <algorithm>
using namespace std;

int main(){
	int most, n;
	int array[101];
	while(cin >> n){
		array[n]++;
	}
		for(int i=1; i<=100; i++){
			most = max(array[i], most);
		}
		for(int i=1; i<=100; i++){
			if(array[i] == most){
				cout << array[i] << endl;
			}
		}
	return 0;
}