#include<stdio.h>
int main()
{
char str[100];
char substr[100];
gets(str);
gets(substr);
char *pos=str;
int flag=0;
while(pos)
{
pos=strstr(pos,substr);
if(pos != NULL){
if(flag==0)
{
printf("Substring %s position:",substr);
flag=1;
}
printf("%d ",pos-str);
++pos;
}
}
if(flag==0)
{
printf("No substring %s\n",substr);
}
return 0;
}