#include <bits/stdc++.h>
using namespace std;
int N, M, ans;
string s, t;
vector<int> pAns, pCur;
int main() {
  cin >> N >> M >> s >> t;
  ans = 10000;
  for (int it = 0; it + N <= M; ++it) {
    pCur.clear();
    for (int jt = 0, kt = it; jt < N; ++jt, ++kt) {
      if (s[jt] != t[kt]) {
        pCur.push_back(jt + 1);
      }
    }
    if (pCur.size() < ans) {
      ans = pCur.size();
      pAns.clear();
      for (int jt = 0; jt < pCur.size(); ++jt) {
        pAns.push_back(pCur[jt]);
      }
    }
  }
  cout << ans << endl;
  for (int it = 0; it < pAns.size(); ++it) {
    cout << pAns[it] << " ";
  }
  return 0;
}
