#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n, m;
  string a, b;
  scanf("%d %d", &n, &m);
  cin >> a >> b;
  vector<int> temp, ans;
  int counter = 1000000000;
  for (i = 0; i <= m - n; i++) {
    int cnt = 0;
    int tempidx = i;
    for (j = 0; j < n; j++) {
      if (b[tempidx] != a[j]) {
        cnt++;
        temp.push_back(j + 1);
      }
      tempidx++;
    }
    if (counter > cnt) {
      counter = cnt;
      ans = temp;
    }
    temp.clear();
  }
  printf("%d\n", counter);
  for (i = 0; i < counter; i++) {
    if (i) {
      printf(" ");
    }
    printf("%d", ans[i]);
  }
  printf("\n");
  return 0;
}
