#include <stdio.h>
main() {
char *x,*y;
int count=0;
int f=0;
char a[]="anna";
char b[]="banana";
//printf("%s\t%s\t",a,b);
x=a; y=b;
while(*y){
if(*x==*y){
x++;
f=1;
}
if(f==1)count++;
*y++;
}
if (*x!='\0')
else
}
I2luY2x1ZGUgPHN0ZGlvLmg+IAptYWluKCkgeyAKICAgIGNoYXIgKngsKnk7CglpbnQgY291bnQ9MDsKICAgIGludCBmPTA7CgljaGFyIGFbXT0iYW5uYSI7CiAgICBjaGFyIGJbXT0iYmFuYW5hIjsKCQkvL3ByaW50ZigiJXNcdCVzXHQiLGEsYik7CgkJeD1hOyB5PWI7CiAgICAgICAgd2hpbGUoKnkpewogICAgICAgICAgIGlmKCp4PT0qeSl7CiAgICAgICAgICAgICAgIHgrKzsKICAgICAgICAgICAgICAgZj0xOwogICAgICAgICAgIH0KICAgICAgICAgICBpZihmPT0xKWNvdW50Kys7CiAgICAgICAgICAgKnkrKzsKICAgICAgICB9CgkJaWYgKCp4IT0nXDAnKSAKCQkJcHJpbnRmKCJcbiBmYWxzZSAoJXMpXG4iLHgpOwoJCWVsc2UKCQkJcHJpbnRmKCJcbnRydWUgJWRcbiIsY291bnQpOwoJCiB9