def main(): x, y, z, _ = map(int, input().split()) ans = (x - y * z) / 2 print(ans) if __name__ == "__main__": main()