#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long ull;

mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
ll myRand(ll B) {
    return (ull)rng() % B;
}

constexpr ll mod=1e9+7;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	string s; cin >> s;
	if(s[0]=='-' or s.size()<3){
		printf("0\n");
	}
	else{
		int n=s.size();
		s=s.substr(0,n-2);
		cout << s << endl;
	}
}