#include <iostream>
#include <stdint.h>
using namespace std;

int main() {
	for (int c = 1; c <= 120; c++)
	{
		int32_t expected = (int)(0.02035*c*c - 2.4038*c);
		int32_t result = (c*((c * 0x535A8) - 0x2675F70));
		if (result < 0)
			result += 0xffffff;
		result = result>>24;
		cout << expected << " " << result << endl;
	}
	return 0;
}