#include using namespace std; int main() { string S,T; cin >> S >> T; int ans = 0; int L=T.size(); for(int i=0;i+L-1