#include <cstdio>
#include <queue>

using namespace std;

int main()
{
	int data[] = { 1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922 };
	priority_queue<int> qu;

	for ( int i = 0; i < 10; i++ )
	{
		qu.push( data[i] );
	}

	for ( int i = 0; i < 3; i++ )
	{
		printf("%d\n", qu.top() );
		qu.pop();
	}

	return 0;
}