results=[] for x in range(3): a=list(map(int,input().split())) b=max(a) results.append(b) print(max(results))