print(sorted([*map(int,input().split())],reversed=True)[2])