#include <iostream>
#include <cmath>
using namespace std;

double g(double v) {return floor(v + .2);}
int main() {
	double c = 1000. / sqrt(sqrt(2.));
	for (int ic = 0; ic <= 10; ++ic, c /= sqrt(2.)) {
		std::cout << "[A" << ic << ':' << g(c) << ' ' << g(sqrt(2.) * c) << "], "
		"[B" << ic << ':' << g(sqrt(3. / 2.) * c) << ' ' << g(sqrt(3.) * c) << "]\n";
	}
	return 0;
}