#include <stdio.h>
int max(int x, int y);
int main(void) {
int a, b, c, d;
scanf("%d %d %d %d", &a
, &b
, &c
, &d
);
int result = max(max(a, b), max(c, d));
return 0;
}
int max(int x, int y) {
return (x > y) ? x : y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWF4KGludCB4LCBpbnQgeSk7IAoKaW50IG1haW4odm9pZCkgewogICAgaW50IGEsIGIsIGMsIGQ7CgogICAgcHJpbnRmKCI044Gk44Gu5pW05pWw44KS5YWl5Yqb44GX44Gm44GP44Gg44GV44GEOiAiKTsKICAgIHNjYW5mKCIlZCAlZCAlZCAlZCIsICZhLCAmYiwgJmMsICZkKTsKCiAgICBpbnQgcmVzdWx0ID0gbWF4KG1heChhLCBiKSwgbWF4KGMsIGQpKTsgCgogICAgcHJpbnRmKCLmnIDlpKflgKTjga86ICVkXG4iLCByZXN1bHQpOwoKICAgIHJldHVybiAwOwp9CgppbnQgbWF4KGludCB4LCBpbnQgeSkgewogICAgcmV0dXJuICh4ID4geSkgPyB4IDogeTsgCn0=