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

int countNumber(int n) {
	if(n == 0) return 0;
	if(n == 1) return 3;
	if(n == 3) return 4;
	
	int end = sqrt(n), start = 0, result = 0, totalCount = 0;
	while(start <= end) {
		result = start*start + end*end;
		if(result < n) {
			totalCount += ((end - start) << 1);
			totalCount++;
			++start;
		}
		else 
			--end;
	}
	return totalCount;
}

int main() {
	for(int i = 1; i <= 64; ++i) {
		cout << "Result of " << i << " is " << countNumber(i) << endl;
	}
	return 0;
}