#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m, mn, ch;
  vector<int> ans, v;
  mn = 1111;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  bool ok = false;
  for (int i = 0; i < m; i++) {
    ok = 1;
    v.clear();
    ch = 0;
    for (int j = 0; j < n; j++) {
      if ((i + j) >= m) {
        ok = 0;
        break;
      }
      if (t[i + j] != s[j]) {
        ch++;
        v.push_back(j + 1);
      }
    }
    if (ok) {
      if (mn > ch) {
        ans = v;
        mn = ch;
      }
    }
  }
  cout << mn << endl;
  for (int i = 0; i < mn; i++) {
    if (i) {
      cout << " ";
    }
    cout << ans[i];
  }
  cout << endl;
  return 0;
}
