# -*- coding: utf-8 -*-
"""
Created on Wed Jun 23 22:49:42 2021

@author: aherrera
"""

x=0
x1=1
x2=-1

y=(3*x**3)-(2*x**2)+(3*x)-1
y1=(3*x1**3)-(2*x1**2)+(3*x1)-1
y2=(3*x2**3)-(2*x2**2)+(3*x2)-1

print(float(y))
print(float(y1))
print(float(y2))