#include <bits/stdc++.h>
using namespace std;
string s, t;
int main() {
  ios::sync_with_stdio(false);
  int n, m;
  cin >> n >> m;
  cin >> s >> t;
  int ans = 10000000;
  vector<int> q, anv;
  for (int i = 0; i <= m - n; ++i) {
    int res = 0;
    int tmp = 0;
    for (int j = 0; j < n; ++j) {
      if (s[j] == t[i + tmp]) {
        ++tmp;
        continue;
      }
      ++res;
      ++tmp;
      q.push_back(j + 1);
    }
    if (res < ans) {
      ans = res;
      anv = q;
    }
    q.clear();
  }
  cout << ans << endl;
  for (auto it : anv) cout << it << " ";
  cout << endl;
  return 0;
}
