X, Y = input().split() Z = (X+Y)/2 - 6 print(Z)