x = float(input("input x:")) y = None if x == 0: y = 0 else: y = x * x + 2 / 3 * (x + 1) print("y=%.2f" % y)