#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n;
  string s, t;
  while (cin >> m >> n >> s >> t) {
    int pos = 0, mn = 100005;
    for (int i = 0; i + m - 1 < n; i++) {
      int cnt = 0;
      for (int j = 0; j < m; j++) {
        if (t[i + j] != s[j]) cnt++;
      }
      if (cnt < mn) {
        mn = cnt;
        pos = i;
      }
    }
    cout << mn << endl;
    for (int i = 0; i < m; i++) {
      if (t[i + pos] != s[i]) cout << i + 1 << " ";
    }
    cout << endl;
  }
  return 0;
}
