#include <bits/stdc++.h>
using namespace std;
int n, m;
char s[1005], t[1005];
int poz;
int main() {
  cin >> n >> m;
  cin.get();
  cin.getline(s, 1005);
  cin.getline(t, 1005);
  int Min = n + 1;
  vector<int> sol;
  for (int i = 0; i <= m - n; ++i) {
    poz = i;
    int nr = 0;
    vector<int> aux;
    for (int j = 0; j < n; ++j) {
      if (s[j] != t[poz]) {
        ++nr;
        aux.push_back(j + 1);
      }
      ++poz;
    }
    if (nr < Min) {
      sol = aux;
      Min = nr;
    }
  }
  cout << Min << "\n";
  for (int i = 0; i < sol.size(); ++i) {
    cout << sol[i] << " ";
  }
  return 0;
}
