#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 4;
int main() {
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  int minn = INT_MAX, idx;
  for (int i = 0; i < m - n + 1; ++i) {
    int cnt = 0;
    for (int j = 0; j < n; ++j) {
      if (s[j] == t[i + j]) cnt++;
    }
    if (minn > n - cnt) minn = n - cnt, idx = i;
  }
  cout << minn << endl;
  for (int i = 0; i < n; ++i) {
    if (s[i] != t[idx + i]) cout << i + 1 << " ";
  }
  return 0;
}
