#include <iostream>
#include <cmath>

int main()
{
	float 
		t, l,
		y;
	std::cin >> t >> l;
	std::cout << "(В-1)R = 3t^2 + 3l^5 + 4.9 =" << 3*pow(t, 2) + 3*pow(l, 5) + 4.9f << std::endl;
	
	std::cin >> y;
	std::cout << "(В-16) S = корень(cos(4y^2) + 7.151) = " << sqrt(cos(4*pow(y, 2)) + 7.151f) << std::endl;
	
}
