#include <bits/stdc++.h>
using namespace std;
string s, t;
int n, m, res, d;
int ans[1010];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  cin >> m;
  cin >> s;
  cin >> t;
  s = "#" + s;
  t = "#" + t;
  res = 1010;
  for (int i = 1; i <= m - n + 1; i++) {
    d = 0;
    for (int j = 1; j <= n; j++)
      if (t[i + j - 1] != s[j]) d++;
    if (res > d) {
      res = d;
      for (int j = n; j >= 1; j--)
        if (t[i + j - 1] != s[j]) {
          ans[d] = j;
          d--;
        }
    }
  }
  cout << res << "\n";
  for (int i = 1; i <= res; i++) cout << ans[i] << " ";
  return 0;
}
