#include<bits/stdc++.h> // #include<atcoder/all> // #include<boost/multiprecision/cpp_int.hpp> using namespace std; // using namespace atcoder; // using bint = boost::multiprecision::cpp_int; using ll = long long; using ull = unsigned long long; using P = pair<int,int>; #define rep(i,n) for(ll i = 0;i < (ll)n;i++) #define ALL(x) (x).begin(),(x).end() #define MOD 1000000007 int main(){ string s; cin >> s; if(s[0] == '-')cout << 0 << "\n"; else { if(s.size() <= 2)cout << 0; else rep(i,s.size()-2)cout << s[i]; cout << "\n"; } return 0; }