easy~
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
while (n % 10 == 0) {
n /= 10;
}
long long ans = 0;
while (n) {
ans = ans * 10 + n % 10;
n /= 10;
}
cout << ans << endl;
return 0;
}