#include <stdio.h>
int main() {
int i;
for ( i=2; i<=1000 ; i=3*i-2 )
if(i>=100)
return 0;
}
CiNpbmNsdWRlIDxzdGRpby5oPgppbnQgbWFpbigpIHsKCWludCBpOwoJZm9yICggaT0yOyBpPD0xMDAwIDsgaT0zKmktMiApIAoJCWlmKGk+PTEwMCkKCQlwcmludGYoIiVkICIgLGkpOwoJCQkKCQkKCQkKCQoJcmV0dXJuIDA7Cgp9Cg==