#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, mn = 99999, value;
  char a[1009], b[1009];
  cin >> n >> k;
  scanf("%s", a + 1);
  scanf("%s", b + 1);
  for (int i = 1; i <= k - n + 1; i++) {
    int cnt = 0;
    for (int j = i, l = 1; l <= n; l++, j++) {
      if (a[l] != b[j]) cnt++;
    }
    if (cnt < mn) {
      mn = cnt;
      value = i;
    }
  }
  cout << mn << endl;
  ;
  for (int i = value, j = 1; j <= n; j++, i++) {
    if (a[j] != b[i]) {
      cout << j << " ";
    }
  }
  return 0;
}
