}returnans; }intmain(){while(1) {scanf("%s",a+1); n=strlen(a+1);if(n==1&& a[1]=='#')return0;scanf("%s",b+1); m=strlen(b+1);pre();printf("%d\n",kmp()); } } __EOF__ BY-NC-SA