#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int pos[n], ans[n], sum = n;
  for (int i = 0; i < n; i++) {
    ans[i] = -1;
  }
  string s, t;
  cin >> s >> t;
  for (int i = 0; i <= (m - n); i++) {
    string p;
    p.append(t, i, n);
    int r = 0, ct = 0, x = 0;
    for (int i = 0; i < n; i++) {
      pos[i] = -1;
    }
    for (int j = 0; j < n; j++) {
      if (p[j] != s[j]) {
        ct += 1;
        pos[x++] = (j + 1);
      }
    }
    if (ct <= sum) {
      sum = ct;
      for (int i = 0; i < sum; i++) {
        ans[i] = pos[i];
      }
    }
  }
  cout << sum << endl;
  for (int i = 0; i < sum; i++) {
    cout << ans[i] << " ";
  }
  cout << endl;
}
