#include<bits/stdc++.h>
using namespace std;

using LL = long long; using ll = LL;
using PII = pair<int, int>; using pii = PII;
using PLL = pair<LL, LL>; using pll = PLL;
using VI = vector<int>; using VL = vector<LL>;
#define FOR(i,s,t) for(int i =s; i < t;i++)
#define SZ(a) (int)a.size()
#define ALL(a) a.begin(),a.end()

void solve() {
	int N = 10;
	priority_queue<int>pq;
	FOR(i, 0, N) {
		int a; cin >> a;
		pq.push(a);
	}
	FOR(i, 0, 3) {
		cout << pq.top() << endl;
		pq.pop();
	}


}

int main() {
	cin.tie(0);
	ios_base::sync_with_stdio(false);

	solve();

	return 0;
}
