#include <bits/stdc++.h> using namespace std; int main() { int n, m = 1, n2 = 0; while (cin >> n) { m = 1; n2 = 0; if (n < 0) { m *= -1; n *= -1; } while (n) { n2 = n2 * 10 + n % 10; n /= 10; } cout << m *n2 << endl; if (cin.get() == '\n') break; } return 0; }