#include <bits/stdc++.h>
using namespace std;

#define mod 1000000007
#define N 100005
#define ll long long
#define ull unsigned long long
#define FOR(i, j, k) for (int i = j; i < k; i++)
#define rloop(i, j, k) for (int i = j; i >= k; i--)
#define rep(i, k) for (int i = (0); i < (k); i++)
#define forall(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define pb push_back
#define pop pop_back
#define F first
#define S second
#define sz(x) (int)(x).size()
#define lin "\n"
#define Max (int)INT_MAX
#define Min (int)INT_MIN
#define fast_io ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(0)
#define PI 2 * acos(0.0)

typedef vector<int> vi;
typedef pair<int, int> pi;
typedef vector<ll> vll;
typedef pair<ll, ll> pll;

void solve(){
    string s;
    cin >> s;
    int cnt = 0;
    for(char i: s){
        if(i == '.')
            break;
        cnt++;
        cout << i;
    }
    if(!cnt)
        cout << "0";
}

int main()
{
    auto start = clock();
    fast_io;
    // freopen("in.txt", "r", stdin);
    // freopen("out.txt", "w", stdout);
    int t = 1;
    // cin >> t;
    while (t--)
    {
        solve();
    }
    auto stop = clock();
    cerr << "time taken:" << double(stop - start) / double(CLOCKS_PER_SEC) << " s" << endl;
    return 0;
 }

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fastio                        \
    ios_base::sync_with_stdio(false); \
    cin.tie(0);                       \
    cout.tie(0)
#define scl(n) scanf("%lld", &n)
#define pcl(n) printf("%lld\n", n)
#define pcl1(n) printf("%lld ", n)
#define nln printf("\n")
#define yes printf("YES\n")
#define no printf("NO\n")
#define dev(x) cout << #x << " " << x << " ";
#define PTT pair<ll, ll>

map<ll, ll> mp, mp1;
map<ll, ll>::iterator itr;

int main()
{
    ll t, n, k, x, y, a, b, d;
    string s;
    cin >> s;
    bool bl = true;
    for (int i = 0; i < s.size(); i++)
    {
        if (s[i] == '.')
        {
            bl = false;
        }

        if (bl)
        {
            cout << s[i];
        }
    }

    return 0;
}