for r in zip(*open(0)):print(end=sorted(r)[12])