#include <stdio.h>
#include <algorithm>
using namespace std;
int main()
{
int i, arr[100];
for (i=0;i<10;i++)
scanf ("%d", &arr[i]);
printf ("%d\n", arr[9]);
printf ("%d\n", arr[8]);
printf ("%d\n", arr[7]);
return 0;
}