#include <stdio.h>
/* 01234567890123456 */
#define L 1000000000000001
#define M 9999999999999997
void f(long long n, int delta) {
unsigned long long m, q, r;
for (;; n += delta) {
m = 1;
do {
m += 2;
q = n / m;
r = n % m;
} while (r != 0 && q >= m);
if (r == 0) {
/* printf("\n%llu(%llu * %llu...%llu)", n, m, q, r); */
continue;
}
if (q < m) {
break;
}
}
}
void step1(void) { f(L, +2); }
void step2(void) { f(M, -2); }
int main() {
step1();
step2();
return 0;
}
/* end */
/*
*/
I2luY2x1ZGUgPHN0ZGlvLmg+CgovKiAgICAgICAgMDEyMzQ1Njc4OTAxMjM0NTYgKi8KI2RlZmluZSBMIDEwMDAwMDAwMDAwMDAwMDEKI2RlZmluZSBNIDk5OTk5OTk5OTk5OTk5OTcKCnZvaWQgZihsb25nIGxvbmcgbiwgaW50IGRlbHRhKSB7CiAgdW5zaWduZWQgbG9uZyBsb25nIG0sIHEsIHI7CiAgZm9yICg7OyBuICs9IGRlbHRhKSB7CiAgICBtID0gMTsKICAgIGRvIHsKICAgICAgbSArPSAyOwogICAgICBxID0gbiAvIG07CiAgICAgIHIgPSBuICUgbTsKICAgIH0gd2hpbGUgKHIgIT0gMCAmJiBxID49IG0pOwogICAgaWYgKHIgPT0gMCkgewovKiAgICAgIHByaW50ZigiXG4lbGx1KCVsbHUgKiAlbGx1Li4uJWxsdSkiLCBuLCBtLCBxLCByKTsgKi8KICAgICAgY29udGludWU7CiAgICB9CiAgICBpZiAocSA8IG0pIHsKICAgICAgcHJpbnRmKCJcbiVsbHVcbiIsIG4pOwogICAgICBicmVhazsKICAgIH0KICB9Cn0KCnZvaWQgc3RlcDEodm9pZCkgeyAgZihMLCArMik7IH0Kdm9pZCBzdGVwMih2b2lkKSB7ICBmKE0sIC0yKTsgfQoKaW50IG1haW4oKSB7CiAgc3RlcDEoKTsKICBzdGVwMigpOwogIHJldHVybiAwOwp9Ci8qIGVuZCAqLwovKgoKKi8K