#include <iostream>
using namespace std;
int main(){
freopen("C:\\temp\\in.txt", "r", stdin);
freopen("C:\\temp\\out.txt", "w", stdout);
int n, max = 0;
// while(scanf("%d", &n) != EOF){
// if(n > max) max = n;
// }
while(cin >> n){
if(n > max) max = n;
}
cout << max << endl;
fclose(stdin);
fclose(stdout);
return 0;
}