#include <iomanip>
#include <iostream>
#include <cstdlib>
#include <cmath>

int main(int argc, char* argv[])
{
	double a= 3987.0;
	double b= 4365.0;
	double c= 4472.0;

	std::cout << std::setprecision(14);
	std::cout << pow(a,12) + pow(b,12) << std::endl;	
	std::cout << pow(c,12) << std::endl;	

	return EXIT_SUCCESS;
}
