#include <stdio.h>
int main() {
int A, B;
// 1. Begin
// 2. A <- 1
A = 1;
// 3. Read B
// 4. While A < B do
while (A < B) {
// 4.1. A <- A + 1
A = A + 1;
// 4.2. If A < 10 then
if (A < 10) {
// 4.2.1. A <- A + 2
A = A + 2;
} else {
// 4.2.2. B <- B - 1
B = B - 1;
}
}
// 5. Write B
// 6. Write A
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgewogICAgaW50IEEsIEI7CgogICAgLy8gMS4gQmVnaW4KICAgIC8vIDIuIEEgPC0gMQogICAgQSA9IDE7CgogICAgLy8gMy4gUmVhZCBCCiAgICBwcmludGYoIuC4m+C5ieC4reC4meC4hOC5iOC4siBCOiAiKTsKICAgIHNjYW5mKCIlZCIsICZCKTsKCiAgICAvLyA0LiBXaGlsZSBBIDwgQiBkbwogICAgd2hpbGUgKEEgPCBCKSB7CiAgICAgICAgLy8gNC4xLiBBIDwtIEEgKyAxCiAgICAgICAgQSA9IEEgKyAxOwoKICAgICAgICAvLyA0LjIuIElmIEEgPCAxMCB0aGVuCiAgICAgICAgaWYgKEEgPCAxMCkgewogICAgICAgICAgICAvLyA0LjIuMS4gQSA8LSBBICsgMgogICAgICAgICAgICBBID0gQSArIDI7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgLy8gNC4yLjIuIEIgPC0gQiAtIDEKICAgICAgICAgICAgQiA9IEIgLSAxOwogICAgICAgIH0KICAgIH0KCiAgICAvLyA1LiBXcml0ZSBCCiAgICBwcmludGYoIuC4hOC5iOC4siBCOiAlZFxuIiwgQik7CgogICAgLy8gNi4gV3JpdGUgQQogICAgcHJpbnRmKCLguITguYjguLIgQTogJWRcbiIsIEEpOwoKICAgIHJldHVybiAwOwp9