# coding:UTF-8 import sys MOD = 10 ** 9 + 7 INF = float('inf') X, Y, Z, W = list(map(int, input().split())) # スペース区切り連続数字 res = (X - Y * Z) / 2 print("{}".format(res))