#include <iostream>

using namespace std;

int main()
{
    char a,b,c;
    cin>>a>>b>>c;
    cout<<b<<c<<a;
    return 0;
}

#include<stdio.h>
int main ()
{
    int g,j,i,h;
    scanf("%d %d\n%d %d",&g,&h,&i,&j);
    printf("%d",g*j-h*i);
    return 0;
}
