#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, m;
  cin >> n >> m;
  string second, t;
  cin >> second >> t;
  long long mn = LLONG_MAX;
  vector<long long> res;
  for (long long i = 0; i < m - n + 1; i++) {
    vector<long long> temp;
    long long cnt = 0;
    for (long long j = 0; j < n; j++) {
      cnt += (second[j] != t[i + j]);
      if (second[j] != t[i + j]) temp.push_back(j + 1);
    }
    if (mn > cnt) res = temp;
    mn = min(mn, cnt);
  }
  cout << mn << endl;
  for (long long i = 0; i < mn; i++) cout << res[i] << " ";
  cout << endl;
}
