#include <iostream>
#include <fstream>
using namespace std;
ifstream fin ("maxim3.in");
ofstream fout ("maxim3.out");
int main()
{
int x,y,z,ma;
fin>>x>>y>>z;
if(x>y)
ma=x;
else
ma=y;
if(ma<z)
fout<<z;
else
fout<<ma;
return 0;
}