#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, mcm = -1;
  vector<int> pntr;
  string s, t;
  cin >> n >> m >> s >> t;
  for (int i = 0; i < (m - n) + 1; i++) {
    string sot = t.substr(i, n);
    int cnt;
    cnt = 0;
    vector<int> tmp;
    for (int j = 0; j < n; j++) {
      if (sot[j] == s[j]) {
        cnt++;
      } else {
        tmp.push_back(j);
      }
      if (cnt == n) {
        cout << "0\n";
        return 0;
      }
    }
    if (cnt > mcm) {
      mcm = cnt;
      pntr = tmp;
    }
  }
  cout << n - mcm << endl;
  for (int i = 0; i < pntr.size(); i++) {
    cout << pntr[i] + 1;
    if (i + 1 < pntr.size()) {
      cout << " ";
    }
  }
}
