#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = ({
    int a;
    scanf("%d", &a);
    a;
  }),
      m = ({
        int a;
        scanf("%d", &a);
        a;
      });
  string s, t;
  cin >> s >> t;
  vector<int> res, v;
  res.clear();
  int mxx = 0;
  for (int i = 0; i < m - n + 1; i++) {
    int cnt = 0;
    v.clear();
    for (int j = 0; j < n; j++) {
      if (t[i + j] == s[j])
        cnt++;
      else
        v.push_back(j + 1);
    }
    if (cnt > mxx) {
      mxx = cnt;
      res = v;
    }
  }
  if (mxx == 0) res = v;
  cout << n - mxx << endl;
  for (int i = 0; i < res.size(); i++) cout << res[i] << ' ';
}
