<reponame>GMKanat/PP2_spring<filename>TSIS_1/topic_3/d.py
a = int(input())
b = int(input())
c = int(input())

print(max(a, max(b,c)))
a = int(input())
b = int(input())
c = int(input())

print(max(a, max(b,c)))