fin_name = 'input.txt'
fout_name = "output.txt"
with open (fin_name) as fin:
a =list(map(int, fin.readline().split(' ')))
MAX = max(a)
with open (fout_name, 'w') as fout:
if MAX<94:
fout.write(str('Error'))
elif MAX>727:
fout.write(str('Error'))
else:
fout.write(str(MAX))