public class Main {
public static void main(String[] args) {
double a = 2.1;
double b = 5.3;
double c = 1.4;
double x = 1.2;
double p = Math.sqrt(Math.exp(2 * x + b));
double q = 1.7 * Math.cos(c * x);
double r = Math.log(x * x + a);
double s = x * x * x;
double y = (p - q) / r + s;
System.out.println("y = " + y);
}
}