print(sorted(open(0))[1])