#include using namespace std; typedef long long ll; #define int ll #define endl '\n' #define pii pair #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define pb push_back #define pii pair #define F first #define S second #define M_PI 3.14159265358979323846 const int mod = 1000000007; const int MAXX = 1e6 + 5; string s; signed main() { _FastIO; cin >> s; if(s[0] == '-'){ cout << "0" << endl; return 0; } int n = s.size(); if(n < 3){ cout << "0" << endl; return 0; } for(int i = 0; i < (n - 2); i++){ cout << s[i]; } cout << endl; return 0; }