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))