#include <iostream>
#include <algorithm>
#include <cmath>
#include <string>


using namespace std;


int main(){
  string str;
  while(cin >> str){
    //    cout << str << endl;
    string strtmp;
    for(int i=0;i<str.size();i++){
      strtmp.push_back(str[str.size()-1-i]);
    }
    cout << strtmp << endl;
  }

} 
#include <bits/stdc++.h>
using namespace std;
//型名省略
typedef long long ll;
typedef vector<long long> vl;
typedef vector<vector<long long>> vll;
typedef vector<char> vc;
typedef vector<vector<char>> vcc;
typedef vector<string> vs;
//マクロ
#define rep(i,n) for(ll i = 0; i < (ll) n; i++)
#define rep2(i,x,n) for(ll i = (ll) x; i < (ll) n; i++)
#define all(A) A.begin(), A.end()

int main() {
    ll a,b; cin >> a >> b;
    cout << a * b << endl;
}