package net.lyt.month1;
import java.util.Scanner;
public class Java23 {
public static void main(String[] args) {
int x;
Scanner sc = new Scanner(System.in);
System.out.print("x = ");
x = sc.nextInt();
float y;
if (x >= 1) {
y = 3 * x * x - 1;
System.out.println("y = "+y);
} else if (-1 <= x & x < 1) {
y = -2 * x + 5;
System.out.println("y = "+y);
} else if (x < -1) {
y = 4 * x * x + 3;
System.out.println("y = "+y);
}
}
}