#include <bits/stdc++.h>
using namespace std;
const long long cls = 256000007;
const int inf = 0x3f3f3f3f;
using namespace std;
char s[1010], t[1010];
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  scanf("%s%s", s, t);
  vector<int> fuck;
  vector<int> fuckk;
  int minn = inf;
  for (int i = 0; i < m - n + 1; ++i) {
    for (int j = 0; j < n; ++j) {
      if (s[j] != t[i + j]) fuckk.push_back(j + 1);
    }
    if ((int)fuckk.size() < minn) {
      minn = fuckk.size();
      fuck = fuckk;
    }
    fuckk.clear();
  }
  printf("%d\n", minn);
  for (unsigned i = 0; i < fuck.size(); i++) {
    printf("%d ", fuck[i]);
  }
  printf("\n");
  return 0;
}
