// Author: Pawan Raj
// Problem: B - Round Down
// Contest: AtCoder - AtCoder Beginner Contest 196
// URL: https://atcoder.jp/contests/abc196/tasks/abc196_b

#include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define int long long
#define F(i, n) for (int i = 0; i < n; i++)
#define all(x)(x).begin(), (x).end()
#define show(A) for (auto i: A) cout << i << " "; cout << '\n';
#define show_(A, n) F(i, n) { show(A[i]) }

using namespace std;
using ld = long double;
using vi = vector < int > ;
using mi = map < int, int > ;
using pi = pair < int, int > ;

const int N = 100005;
const int MOD = 1e9 + 7;
const int inf = 1e18 + 1;
/***************************code begins here*****************************/

void solve() {
	string s;
	cin >> s;
	if(count (all(s),'.') == 0){
		cout << s << '\n';
	}
	else{
		string t;
		bool ok = 1;
		for(char x : s ){
			if(x=='.'){
				ok = 0;
				break;
			}
			if(ok){
				t.pb(x);
			}			
		}
		cout << t << '\n';
	}
}

int32_t main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int t = 1;
    // cin >> t;
    while (t--) 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;
  for(char c : x) {
    if(c == '.') break;
    ans += c;
  }
  cout << ans << endl;
  return 0;
}
