#include <iostream>
#include <math.h>
using namespace std;
int main() {
double a, b, y, z;
cout << "Enter a" << endl;
cin >> a;
cout << "Enter b" << endl;
cin >> b;
y = pow(cos(a), 4) + pow(sin(b), 2) + 1.f / 4 * pow(sin(2 * a), 2) - 1;
z = sin(b + a) * sin(b - a);
cout << "y = " << y << "; z = " << z << endl;
return 0;
}