#include <fstream>
#include <iostream>
#include <iterator>
#include <algorithm>
int main()
{
auto it = std::max_element(std::istream_iterator<int>(std::cin), std::istream_iterator<int>());
if (it != std::istream_iterator<int>()) {
std::cout << *it << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGZzdHJlYW0+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGl0ZXJhdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKCmludCBtYWluKCkKewoJYXV0byBpdCA9IHN0ZDo6bWF4X2VsZW1lbnQoc3RkOjppc3RyZWFtX2l0ZXJhdG9yPGludD4oc3RkOjpjaW4pLCBzdGQ6OmlzdHJlYW1faXRlcmF0b3I8aW50PigpKTsKCglpZiAoaXQgIT0gc3RkOjppc3RyZWFtX2l0ZXJhdG9yPGludD4oKSkgewoJCXN0ZDo6Y291dCA8PCAqaXQgPDwgc3RkOjplbmRsOwoJfQoKCXJldHVybiAwOwp9Cg==