#include <stdio.h>
int main(void) {
int a;
for (a=2;a<=1000;a=3*a-2)
{
if((a>=100)&&(a<=1000))
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CmludCBhOwpmb3IgKGE9MjthPD0xMDAwO2E9MyphLTIpCnsKaWYoKGE+PTEwMCkmJihhPD0xMDAwKSkKcHJpbnRmKCIlZCAiLGEpOwoKfQpyZXR1cm4gMDsKfQ==