#include<stdio.h>
int main(){
char test[50][80];
int i=0;
do{
scanf("%s",&test[i]);
i++;
}while((getchar())!='\n');
printf("%s",test[i-1]);
for(i=i-2; i>=0; i--){
printf(" ");
printf("%s",test[i]);
}
return 0;
}
#include<stdio.h>
int main(){
char test[50][80];
int i=0;
do{
scanf("%s",&test[i]);
i++;
}while((getchar())!='\n');
printf("%s",test[i-1]);
for(i=i-2; i>=0; i--){
printf(" ");
printf("%s",test[i]);
}
return 0;
}