#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int64_t n, m;
  string s, t;
  cin >> n >> m >> s >> t;
  int64_t pos = 0, k = n;
  for (int64_t i = 0; i + n - 1 < m; i++) {
    int64_t c = 0;
    for (int64_t j = i; j < i + n; j++) c += (s[j - i] != t[j]);
    if (c < k) {
      k = c;
      pos = i;
    }
  }
  cout << k << endl;
  for (int64_t i = pos; i < pos + n; i++) {
    if (s[i - pos] != t[i]) cout << i - pos + 1 << " ";
  }
}
