def maxodd(iterable):
odd = (n for n in iterable if n%2)
max_ = next(odd, None)
if max_ is not None:
return reduce(lambda n,m: n if n > m else m, odd, max_)
import sys
print(maxodd(int(line) for line in sys.stdin))
ZGVmIG1heG9kZChpdGVyYWJsZSk6CiAgICBvZGQgPSAobiBmb3IgbiBpbiBpdGVyYWJsZSBpZiBuJTIpCiAgICBtYXhfID0gbmV4dChvZGQsIE5vbmUpCiAgICBpZiBtYXhfIGlzIG5vdCBOb25lOgogICAgICAgcmV0dXJuIHJlZHVjZShsYW1iZGEgbixtOiBuIGlmIG4gPiBtIGVsc2UgbSwgb2RkLCBtYXhfKQoKaW1wb3J0IHN5cwpwcmludChtYXhvZGQoaW50KGxpbmUpIGZvciBsaW5lIGluIHN5cy5zdGRpbikp