#include using namespace std; using ll = long long; #define rep(i,n) for (ll i = 0; i < (ll(n)); ++i) #define All(v) (v).begin(),(v).end() #define rall(v) (v).rbegin(),(v).rend() //reverse #define strall(v) (v).cbegin(),(v).cend() //const_itterator #define IN(a, b, x) (a<=x&&x; using Graph = vector>; template using min_priority_queue = priority_queue, greater>; template> bool chmax(t& xmax, const u& x, Comp comp={}) { if(comp(xmax, x)) { xmax = x; return true; } return false;} template> bool chmin(t& xmin, const u& x, Comp comp={}) { if(comp(x, xmin)) { xmin = x; return true;} return false;} const int INF = 1e9; const ll infl = ll(1e18)+5; vector l(10); vector> now(4,pair(0,0)) ;//グループわけ,<全長,本数> int N,X[3] = {0}; ll res = 1e12; int main(){ string s;cin >> s; if(s.size() < 3) {cout << 0 << endl;return 0;} s.pop_back(); s.pop_back(); if(s[0] == '-') cout << 0 << endl; else cout << s << endl; }