#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  int count = INT_MAX;
  vector<int> res;
  for (int i = 0; i <= m - n; i++) {
    vector<int> pos;
    int tc = 0;
    pos.clear();
    for (int j = 0; j < n; j++) {
      if (s[j] != t[i + j]) {
        pos.push_back(j);
        tc++;
      }
    }
    if (tc < count) {
      count = tc;
      res = pos;
    }
  }
  cout << count;
  cout << "\n";
  for (int i = 0; i < res.size(); i++) cout << res[i] + 1 << " ";
  cout << "\n";
  return 0;
}
