#include <bits/stdc++.h>
#include <math.h>
#define rep(i,n) for (int i = 0; i < (n) ;i++)

using namespace std;
using p=pair<int,int>;
typedef long long ll;

int main() {
  string a;
  cin >> a;
  int i = 0;
  while(a[i]!='.'&&(a[i]=='0'||a[i]=='1'||a[i]=='2'||a[i]=='3'||a[i]=='4'||a[i]=='5'||a[i]=='6'||a[i]=='7'||a[i]=='8'||a[i]=='9')){
    cout << a[i];
    i++;
  }
  return 0;

}
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main() {
  string x;
  cin >> x;
  for(int i; i < x.size(); i++) {
    char c = x[i];
    if(c == '.') break;
    else cout << c;
  }
  cout << endl;
  
  return 0;
}