#include <bits/stdc++.h>
using namespace std;
string s, t = "";


int main() {
	 cin >> s;
	 reverse(s.begin(), s.end());
	 t = s;
	 int l = 0;
	 while(t[l] == '0')
	 {
	     l++;
	 }
	 for (int i = l; i < t.size(); i++)
	 {
	     cout<< t[i];
	 }

}
