#include <iostream>
using namespace std;
int main() {
int age, max_age = 0;
for (int i = 0; i < 5; i++) {
cin >> age;
if (age > max_age) {
max_age = age;
}
}
cout << max_age << endl;
return 0;
}
/**************************************************************
Problem: 1736
User: fuhoubin
Language: C++
Result: Accepted
Time:18 ms
Memory:2072 kb
****************************************************************/