#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  int mincnt = n + 1;
  int nin = -1;
  for (int i = 0; i <= m - n; i++) {
    int cnt = 0;
    for (int j = 0; j < n; j++) {
      if (s[j] != t[i + j]) cnt++;
    }
    if (mincnt > cnt) {
      mincnt = cnt;
      nin = i;
    }
  }
  vector<long long> a;
  int i = nin;
  for (int k = i; k <= n + i - 1; k++)
    if (s[k - i] != t[k]) a.push_back(k - i);
  cout << a.size() << "\n";
  for (int i = 0; i < mincnt; i++) cout << a[i] + 1 << " ";
}
