#include <bits/stdc++.h>
using namespace std;
int main() {
  int j, count, n, m, ans = 10000, i, s;
  char a[1010], b[1010];
  cin >> n >> m;
  cin >> a;
  cin >> b;
  for (i = 0; i <= m - n; i++) {
    bool take = false;
    j = 0;
    count = 0;
    while (j < n) {
      if (a[j] != b[i + j]) {
        count++;
        take = true;
      }
      j++;
    }
    if (count <= ans) {
      ans = count;
      s = i;
    }
  }
  cout << ans << endl;
  bool take = false;
  j = 0;
  count = 0;
  while (j < n) {
    if (a[j] != b[s + j] && !take) {
      count++;
      cout << j + 1 << " ";
    }
    j++;
  }
  return 0;
}
