#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << std::max({a,b,c,d}) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJaW50IGEsIGIsIGMsIGQ7CgljaW4gPj4gYSA+PiBiID4+IGMgPj4gZDsKCWNvdXQgPDwgc3RkOjptYXgoe2EsYixjLGR9KSA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0=