i=input print(sorted([i(),i(),i()])[1])