#include <iostream>
#include <string>

int main() {
    std::string S, T;
    std::cin >> S >> T;
    for (int i = 0; i + T.length() - 1 < S.length(); ++i) {
        bool judge = true;
        for (int j = 0; j < T.length(); ++j) {
            if (S[i + j] != T[j]) judge = false;
        }
        if (judge) std::cout << i << std::endl;
    }
    return 0;
}

