///******* In the name of Allah *******///

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

#define fastio ios_base::sync_with_stdio(false), cin.tie(NULL);
#define nl '\n'


void Ok()
{
    long int a,b,c,d,e,f,g,h,t,i,j,k,l,m,n,Mn,Mx;
    long int ans_1,ans_2,ans_3,cnt_1,cnt_2,cnt_3,flag_1,flag_2,flag_3,temp,sum;
    double aa,bb,cc,dd,ee,ff,gg;
    char aaa,bbb,ccc,ddd;
    string spc,in,store;

    fastio;

    Mn = 999;
    for(i=1;i<=4;i++)
    {
        cin>>a;
        Mn = min(a,Mn);
    }
    cout<<Mn<<nl;
    return;
}

int main()
{
    Ok();

    return 0;
}

#include <bits/stdc++.h>
using namespace std;
main(){
	string s;cin>>s;
	for (int i = 0; i < s.size(); ++i)
	{
		/* code */
		if(s[i]=='.'){
			cout<<s.substr(0,i);
			break;
		}
          	if(i==s.size()-1)cout<<s;
	}
}