#include<bits/stdc++.h>
using namespace std;
int main(){
	float a,b,c,d;
	cin>>a>>b>>c>>d;
	if(a>b){
		swap(a,b);
	} 
	if(a>c){
		swap(a,c);
	}
	if(a>d){
		swap(a,d);
	}
	cout<<a;
}
/**************************************************************
	Problem: 1708
	User: fuhoubin
	Language: C++
	Result: Accepted
	Time:18 ms
	Memory:2072 kb
****************************************************************/