#include <iostream>
#include <map>

int main()
{
	std::map<int, std::size_t> counts;
	int x;
	while(std::cin >> x)
	{
		++counts[x]; //or: counts[x] = counts[x] + 1;
	}
	std::multimap<std::size_t, int> mode;
	for(auto const &v : counts)
	{
		mode.emplace(v.second, v.first);
	}
	auto most = mode.rbegin()->first;
	std::cout << "Appearing " << most << " times: ";
	for(auto it = mode.rbegin(); it != mode.rend() && it->first == most; ++it)
	{
		std::cout << it->second << " ";
	}
	std::cout << std::endl;
}
