try: x=float(input()) if x<=-2: y=-2*x-1 elif x<=1: y=3.0 else: y=2*x+1 print("y=%.2f"%y)except: print("Input Error!")