/** * author: ytsmash * created: 14.08.2021 08:58:52 **/ #include using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(x) x.begin(), x.end() const long double EPS = 1e-10; const long long INF = 1e18; const long double PI = acos(-1.0L); using P = pair; int main() { int N; cin >> N; vector ans(3); rep(i, 3) { ans[i] = N % 10; N /= 10; } cout << ans[2] << ans[1] << ans[0] << "\n"; return 0; }