import statistics i = list(map(int, input().split())) print(statistics.median(i))