p = int(input()) k = int(input()) z = int(input()) if p > 0: y = p ** 3 else: if p < 0: y = p + k else: y = p - z print(y)
7