#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  vector<int> x, temp;
  int i, j, si = INT_MAX;
  for (i = 0; i <= m - n; i++) {
    for (j = 0; j < n; j++) {
      if (s[j] != t[i + j]) temp.push_back(j + 1);
    }
    if (si > temp.size()) {
      x = temp;
      si = temp.size();
    }
    temp.clear();
  }
  cout << x.size() << endl;
  for (i = 0; i < x.size(); i++) cout << x[i] << " ";
  return 0;
}
