#include<stdio.h>
void main()
{
int a[10],i=0,x;
do
{
scanf("%d",&a[i]);
i++;
}
while(i<=9);
i=0;
do
{
x=a[i];
a[i]=a[9-i];
a[9-i]=x;
i++;
}
while(i<=4);
i=0;
do
{
printf("%d\n",a[i]);
i++;
}
while(i<=9);
scanf("%d",&i);
}
void main()
{
int a[10],i=0,x;
do
{
scanf("%d",&a[i]);
i++;
}
while(i<=9);
i=0;
do
{
x=a[i];
a[i]=a[9-i];
a[9-i]=x;
i++;
}
while(i<=4);
i=0;
do
{
printf("%d\n",a[i]);
i++;
}
while(i<=9);
scanf("%d",&i);
}