#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
int main() {
  ios_base::sync_with_stdio(0);
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  int best = INF;
  vector<int> res;
  for (int i = 0; i + n - 1 < m; ++i) {
    vector<int> tmp;
    for (int j = 0; j < n; ++j) {
      if (s[j] != t[i + j]) {
        tmp.push_back(j);
      }
    }
    if (tmp.size() < best) {
      best = tmp.size();
      res = tmp;
    }
  }
  cout << res.size() << endl;
  for (auto e : res) {
    cout << e + 1 << " ";
  }
  cout << endl;
  return 0;
}
