#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  string s, t;
  cin >> s >> t;
  int ans = INT_MAX;
  vector<int> pos, fin;
  for (int i = 0; i + s.size() <= t.size(); i++) {
    int curr = 0;
    pos.clear();
    for (int j = 0; j < s.size(); j++) {
      if (s[j] != t[i + j]) curr++, pos.push_back(j);
    }
    if (ans > curr) {
      ans = curr;
      fin = pos;
    }
  }
  cout << ans << endl;
  for (int i = 0; i < fin.size(); i++) cout << fin[i] + 1 << " ";
  cout << endl;
  return 0;
}
