s=input()
t=input()
count=0
a=s.find(t)
if a==-1:
print (0)
else:
print (a)
while a>-1:
s=s[a+len(t):]
a=s.find(t)
count+=1
print (count)
cz1pbnB1dCgpCnQ9aW5wdXQoKQpjb3VudD0wCmE9cy5maW5kKHQpCmlmIGE9PS0xOgogICBwcmludCAoMCkKZWxzZToKICAgcHJpbnQgKGEpCiAgIHdoaWxlIGE+LTE6CiAgICAgIHM9c1thK2xlbih0KTpdCiAgICAgIGE9cy5maW5kKHQpCiAgICAgIGNvdW50Kz0xCiAgIHByaW50IChjb3VudCk=