#include <stdio.h>

int main()
{
	int val[101] = {0}, val2[100], v, i, max;

	i = 0;
	while(scanf("%d", &v) != EOF){
		val[v]++;

		i++;
	}

	max = 1;
	v = 0;
	for(i = 1; i < 101; i++){
		if(max == val[i]) {v++; val2[v] = i;}
		else if(max < val[i]) {max = val[i]; v = 0; val2[v] = i;}
	}

	i = 0;
	while(val2[i] != '\0'){
		printf("%d\n", val2[i]);

		i++;
	}

	return 0;
}