apple application apply banana band app
3
words=input().split() prefix=input().strip() print(sum(1 for w in words if w.startswith(prefix)))