#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c,d,e,w;
	cin>>a>>b>>c>>d>>e;
	w=a;
	if(b>w) swap(b,w);
	if(c>w) swap(c,w);
	if(d>w) swap(d,w);
	if(e>w) swap(e,w);
	cout<<w;
} 

/**************************************************************
	Problem: 1736
	User: linmiaoling
	Language: C++
	Result: Accepted
	Time:6 ms
	Memory:2072 kb
****************************************************************/