#include<stdio.h>
int main(){
int a, b;
while(scanf("%d %d", &a
, &b
) != EOF
){ if(a == 0 && b == 0)
break;
}
}
I2luY2x1ZGU8c3RkaW8uaD4KIAppbnQgbWFpbigpewogICAgaW50IGEsIGI7CiAgICB3aGlsZShzY2FuZigiJWQgJWQiLCAmYSwgJmIpICE9IEVPRil7CiAgICAgICAgaWYoYSA9PSAwICYmIGIgPT0gMCkKICAgICAgICAgYnJlYWs7CiAgICAgICAgcHJpbnRmKCIlZFxuIiwgYSArIGIpOwogIAogICAgfQp9