#include <iostream>
#include <iosfwd>
#include <iomanip>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <cassert>
#include <cctype>
#include <climits>
#include <vector>
#include <bitset>
#include <set>
#include <queue>
#include <math.h>
#include <stack>
#include <map>
#include <deque>
#include <string>
#include <list>
#include <iterator>
#include <sstream>
#include <complex>
#include <fstream>
#include <functional>
#include <numeric>
#include <utility>
#include <algorithm>
#include <assert.h>
#include <unordered_map>
#pragma GCC optimize ("-O3")
 
using namespace std;
 
#define watch(x) cout << (#x) << " = " << (x) << endl
#define PI double(2 * acos(0.0))
#define ll long long
#define MOD 1000000007
#define all(x) (x).begin(), (x).end()
#define INF 1e15
 
int main()  {
    ios_base::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    string s;
    cin >> s;
    int n = s.size();
    for(int i = 0;i<n;i++){
        if(s[i] != '.'){
            cout << s[i];
        }else break;
    }   
}
#include <bits/stdc++.h>
using namespace std;

int main() {
	string s; cin >> s;
	string ans = "";
	bool flg = true;
	for(char c : s) {
		if(c == '.') {
			flg = false;
		}
		if(flg) {
			ans += c;
		}
	}
	cout << ans << '\n';
	return 0;
}
