import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Top3{
	int fst=0;
	int snd=0;
	int thd=0;
}

public class Main{
	public static void main(String args[]){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int mnt[]=new int[10];
		for(int i=0;i<10;i++){
			String s;
			try {
				s = br.readLine();
				mnt[i]=Integer.parseInt(s);
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		
		Top3 m = new Top3();
		
		for(int i=0;i<10;i++){
			if(mnt[i]>m.fst){
				m.thd = m.snd;
				m.snd = m.fst;
				m.fst = mnt[i];
			}else if(mnt[i]>m.snd){
				m.thd = m.snd;
				m.snd = mnt[i];
			}else if(mnt[i]>m.thd){
				m.thd = mnt[i];
			}
		}
		System.out.println(m.fst);
		System.out.println(m.snd);
		System.out.println(m.thd);
	}
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz