#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RkaW50Lmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWZvciAoaW50IGMgPSAxOyBjIDw9IDEyMDsgYysrKQoJewoJCWludDMyX3QgZXhwZWN0ZWQgPSAoaW50KSgwLjAyMDM1KmMqYyAtIDIuNDAzOCpjKTsKCQlpbnQzMl90IHJlc3VsdCA9IChjKigoYyAqIDB4NTM1QTgpIC0gMHgyNjc1RjcwKSk7CgkJaWYgKHJlc3VsdCA8IDApCgkJCXJlc3VsdCArPSAweGZmZmZmZjsKCQlyZXN1bHQgPSByZXN1bHQ+PjI0OwoJCWNvdXQgPDwgZXhwZWN0ZWQgPDwgIiAiIDw8IHJlc3VsdCA8PCBlbmRsOwoJfQoJcmV0dXJuIDA7Cn0=