x,y,z = map(int,input().split()) print((x+y+z)//2)