uint16_t a = 26399;
uint16_t x = 0;
while(true) {
uint16_t t = a;
t *= x;
if (t == 1) {
cout << x << "\n";
break;
}
++x;
};
unsigned int b1 = *text++;
unsigned int b2 = *text++;
state = (b1 << 8) | b2;
(a+b, c+d) = (a, c+d)+(b,c+d) = (a,c) + (a,d) + (b,c) + (b,d)