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

int main(int argc, char* argv[])
{
	double a= 1782.0;
	double b= 1841.0;
	double c= 1922.0;

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

	return EXIT_SUCCESS;
}
