#include
#include
using namespace std;
int main()
{
fstream file_in("input.txt", ios::in);
fstream file_out("output.txt", ios::out);
int n, max = -1001;
file_in >> n;
while (n != 0)
{
if (n > max) max = n;
file_in >> n;
}
if (max != -1001) file_out << max;</p>
file_in.close();
file_out.close();
return 0;
}