# Volume0 0028
# Mode Value
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0028&lang=jp

data = Array.new( 101 )
101.times{ |n|
	data[ n ] = 0
}

while line = $stdin.gets
	num = line.chomp.to_i
	data[ num ] += 1
end

max = -1
1.upto( 100 ){ |n|
	max = data[ n ] if data[n] > max
}
1.upto( 100 ){ |n|
	puts n if data[n] == max	
}
