int main()
{
	float a,b,c;
	int d,e,f,g,h,j,k,l,m,i,n;
	char p[10];
	scanf("%s",p);
	for (i=strlen(p)-1;i>=0;i--)
		printf("%c",p[i]);
	return 7;
}