#include <bits/stdc++.h>
using namespace std;
void solve(){
	string s,ans="";
    cin>>s;
    int n,i,j=-1;
   n=s.length();
  for(i=0;i<n;i++){
    if(s[i]=='.'){
      j=i;
      break;
    }
  }
  if(j==0){
  	cout<<"0"<<endl;
  	return;
  }
  if(j==-1){
  	cout<<s<<endl;
  	return;
  }
  for(i=0;i<j;i++)
    ans=ans+s[i];
  cout<<ans<<endl;
}
int main() {
	// your code goes here
	solve();
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
    string X;
    cin >> X;
    string ans;
    rep(i, X.size()) {
        if (X.at(i) == '.') break;
        ans.push_back(X.at(i));
    }
    cout << ans << endl;
}