a = input()

sub = input()

num = len(sub)

n = len(a)

c = 0
for i in range(0 , n - num + 1):
    print(a[i : i + num ])
    if(a[i : i + num ] == sub):
        c += 1

print(c)
ad4d77bbd436c716f5324ea41ef4a139d0fb9583
<mask token>

<mask token>
for i in range(0, n - num + 1):
    print(a[i:i + num])
    if a[i:i + num] == sub:
        c += 1
print(c)

a = input()
sub = input()
num = len(sub)
n = len(a)
c = 0
for i in range(0, n - num + 1):
    print(a[i:i + num])
    if a[i:i + num] == sub:
        c += 1
print(c)

a = input()

sub = input()

num = len(sub)

n = len(a)

c = 0
for i in range(0 , n - num + 1):
    print(a[i : i + num ])
    if(a[i : i + num ] == sub):
        c += 1

print(c)