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);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Top3{
	int fst=0;
	int snd=0;
	int thd=0;
} Top3 int fst=0; fst 0 int snd=0; snd 0 int thd=0; 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);
	}
} 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);
	} main {
		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);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int mnt[]=new int[10]; mnt new int[10] 10 for(int i=0;i<10;i++){
			String s;
			try {
				s = br.readLine();
				mnt[i]=Integer.parseInt(s);
			} catch (IOException e) {
				e.printStackTrace();
			}
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			String s;
			try {
				s = br.readLine();
				mnt[i]=Integer.parseInt(s);
			} catch (IOException e) {
				e.printStackTrace();
			}
		} {
			String s;
			try {
				s = br.readLine();
				mnt[i]=Integer.parseInt(s);
			} catch (IOException e) {
				e.printStackTrace();
			}
		} String s; s try {
				s = br.readLine();
				mnt[i]=Integer.parseInt(s);
			} catch (IOException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			} IOException e {
				e.printStackTrace();
			} e.printStackTrace() e.printStackTrace e {
				s = br.readLine();
				mnt[i]=Integer.parseInt(s);
			} s = br.readLine() s br.readLine() br.readLine br mnt[i]=Integer.parseInt(s) mnt[i] mnt i Integer.parseInt(s) Integer.parseInt Integer s Top3 m = new 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];
			}
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ 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];
			}
		} {
			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];
			}
		} 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];
			} mnt[i]>m.fst mnt[i] mnt i m.fst m m.fst {
				m.thd = m.snd;
				m.snd = m.fst;
				m.fst = mnt[i];
			} m.thd = m.snd m.thd m m.thd m.snd m m.snd m.snd = m.fst m.snd m m.snd m.fst m m.fst m.fst = mnt[i] m.fst m m.fst mnt[i] mnt i if(mnt[i]>m.snd){
				m.thd = m.snd;
				m.snd = mnt[i];
			}else if(mnt[i]>m.thd){
				m.thd = mnt[i];
			} mnt[i]>m.snd mnt[i] mnt i m.snd m m.snd {
				m.thd = m.snd;
				m.snd = mnt[i];
			} m.thd = m.snd m.thd m m.thd m.snd m m.snd m.snd = mnt[i] m.snd m m.snd mnt[i] mnt i if(mnt[i]>m.thd){
				m.thd = mnt[i];
			} mnt[i]>m.thd mnt[i] mnt i m.thd m m.thd {
				m.thd = mnt[i];
			} m.thd = mnt[i] m.thd m m.thd mnt[i] mnt i System.out.println(m.fst) System.out.println System.out System System.out m.fst m m.fst System.out.println(m.snd) System.out.println System.out System System.out m.snd m m.snd System.out.println(m.thd) System.out.println System.out System System.out m.thd m m.thd String args[] args 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);
	}
} 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);
	}
} Main
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);
	}
}