#include <stdio.h>
#include <string.h>
int main(void) {
char sntc[150];
char word[30];
char *found;
size_t wordlen;
fgets(sntc
,sizeof(sntc
),stdin
); fgets(word
,sizeof(word
),stdin
); word[wordlen]=0;
while((found
=strstr(sntc
,word
))!=NULL
) return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKHZvaWQpIHsKCWNoYXIgc250Y1sxNTBdOwoJY2hhciB3b3JkWzMwXTsKICAgIGNoYXIgKmZvdW5kOwogICAgc2l6ZV90IHdvcmRsZW47CiAgICBmZ2V0cyhzbnRjLHNpemVvZihzbnRjKSxzdGRpbik7CiAgICBmZ2V0cyh3b3JkLHNpemVvZih3b3JkKSxzdGRpbik7CiAgICB3b3JkbGVuPXN0cmxlbih3b3JkKS0xOwogICAgd29yZFt3b3JkbGVuXT0wOwogICAgd2hpbGUoKGZvdW5kPXN0cnN0cihzbnRjLHdvcmQpKSE9TlVMTCkKICAgICAgICBtZW1tb3ZlKGZvdW5kLGZvdW5kK3dvcmRsZW4sc3RybGVuKGZvdW5kK3dvcmRsZW4pKzEpOwogICAgcHJpbnRmKCIlcyIsc250Yyk7CglyZXR1cm4gMDsKfQ==