#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  unsigned long long int i, j, n, m;
  cin >> n >> m;
  string str, s, t;
  cin >> s >> t;
  unsigned long long int maxans = n + 1;
  vector<unsigned long long int> prev, vec;
  for (j = 0; j <= m - n; j++) {
    vec.clear();
    unsigned long long int inde = 0, cnt = 0;
    for (i = j; i <= j + n - 1; i++) {
      if (t[i] == s[inde++]) {
        continue;
      } else {
        ++cnt;
        vec.push_back(inde);
      }
    }
    if (cnt <= maxans) {
      prev = vec;
      maxans = cnt;
    }
  }
  cout << maxans << endl;
  for (int k = 0; k < maxans; k++) cout << prev[k] << " ";
  return 0;
}
