#include <algorithm>
#include <iostream>
using namespace std;

int main()
{
	int high[10];
	int i = 0;
	
	while (i < 10){
		cin >> high[i];
		i++;
	}
	
	i = 0;
	
	reverse(high[i], high[i + 9]);
	
	while (i < 3){
		cout << high[i] << endl;
	}
	
	return (0);
}