data = list(map(int, input().split())) print(int(sum(data)/3))