#include <iostream>
using namespace std;
int main() {
int numero;
int max=0;
do {
cin>> numero;
if (numero> max)
max= numero;
} while (numero!=0);
cout<< max;
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbnVtZXJvOwoJaW50IG1heD0wOwoJZG8gewoJCWNpbj4+IG51bWVybzsKCQlpZiAobnVtZXJvPiBtYXgpCgkJCW1heD0gbnVtZXJvOwoJCQkKCX0gd2hpbGUgKG51bWVybyE9MCk7Cgljb3V0PDwgbWF4OwoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJcmV0dXJuIDA7Cn0=