Python 3.7.0
import math
x = int(input("Enter x: "))
if (x > 2.5):
print(str(x - 2))
elif (0
print(str(1 + x * x))
elif (x < 0):
print(str(x * math.log(math.fabs(math.cos(x)))))