#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  string s, t;
  cin >> x >> y >> s >> t;
  int arr[y - x + 1];
  int mx = -1, res;
  for (int i = 0; i < y - x + 1; i++) {
    int k = i;
    arr[i] = 0;
    for (int j = 0; j < x; j++, k++) {
      if (t[k] == s[j]) arr[i] += 1;
    }
    if (mx < arr[i]) {
      mx = arr[i];
      res = i;
    }
  }
  cout << x - mx << endl;
  for (int i = res, j = 0; j < x; i++, j++) {
    if (t[i] != s[j]) cout << j + 1 << " ";
  }
  return 0;
}
