#include <iostream> using namespace std; int main() { int max = 0; int tmp = 1; while (cin >> tmp && tmp != 0) { if (tmp > max) max = tmp; } cout << max; }