#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  char s[1001], t[1001];
  int i, j, n, m, ans[1001] = {0}, mn = 1000000;
  vector<int> pos[1001];
  cin >> n >> m;
  cin >> s >> t;
  for (i = 0; i <= m - n; i++) {
    for (j = i; j < n + i; j++) {
      if (s[j - i] != t[j]) {
        ans[i]++;
        pos[i].push_back(j - i + 1);
      }
    }
  }
  for (i = 0; i <= m - n; i++) {
    if (ans[i] < mn) {
      j = i;
      mn = ans[i];
    }
  }
  cout << ans[j] << "\n";
  for (i = 0; i < pos[j].size(); i++) cout << pos[j][i] << " ";
  return 0;
}
