l=[] for i in range (3): l.append(map(int,input().split())) max=0 for i in l: for j in i: if j>max: max=j print(max)