print(sorted(open(0).read().split())[7])