#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, ans = 10000, ind = 0;
  cin >> n >> m;
  string a, b;
  cin >> a >> b;
  vector<vector<long long>> arr(m, vector<long long>(n + 1, 0));
  for (i = 0; i < m - n + 1;) {
    long long tmp = 0, j, k = i;
    vector<long long> t(n + 1, 0);
    for (j = 0; j < n; j++) {
      if (b[i] != a[j]) {
        tmp++;
        t[j + 1] = 1;
      }
      i++;
    }
    if (ans > tmp) {
      ans = tmp;
      arr[ind] = t;
      ind++;
    }
    i = k + 1;
  }
  cout << ans << endl;
  for (i = 0; i < n + 1; i++)
    if (arr[ind - 1][i] > 0) cout << i << " ";
  return 0;
}
