#include <bits/stdc++.h>
using namespace std;
int sz1;
int sz2;
string a, b;
const int inf = 1 << 30;
int AnswerProblem = inf;
vector<int> Places;
int main() {
  cin >> sz1 >> sz2;
  cin >> a >> b;
  int i, j, jj;
  int end1 = sz2 - sz1, end2;
  for (i = 0; i <= end1; i++) {
    int end2 = i + sz1;
    int TAnswer = 0;
    for (j = i, jj = 0; j < end2; j++, jj++) {
      if (b[j] != a[jj]) {
        TAnswer++;
      }
    }
    Places.clear();
    if (TAnswer < AnswerProblem) {
      for (j = i, jj = 0; j < end2; j++, jj++) {
        if (b[j] != a[jj]) {
          Places.push_back(jj);
        }
      }
      AnswerProblem = TAnswer;
    }
  }
  cout << AnswerProblem << endl;
  for (i = 0; i < AnswerProblem; i++) {
    cout << Places[i] + 1 << " ";
  }
  cout << endl;
  return 0;
}
