#include<cstdio>

int main(){
	char str[20];
	char c;
	int i = -1;
	scanf("%c", &c);
	while(c - 10){
		i++;
		str[i] = c;
		scanf("%c", &c);
	}
	for(; i >= 0; i--){
		printf("%c", str[i]);
	}
	printf("\n");
	return 0;
}
#include<iostream>
using namespace std;

int main()
{
	int a, b, c,i,j;
	cin >> a >> b >> c;
	
	i = a;
	a = b;
	b = i;
	
	j = a;
	a = c;
	c = j;

	cout << a << " " << b << " " << c;
	return 0;
}