#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string s, sh;
  cin >> s >> sh;
  int mn = 1e9, index = -1;
  for (int i = 0; i + n - 1 < m; i++) {
    int ans = 0, flag = 0;
    for (int j = i, beg = 0; j < m; j++, beg++) {
      if (beg >= n) {
        break;
      }
      if (s[beg] != sh[j]) {
        ans++;
      }
    }
    if (ans < mn && !flag) {
      mn = ans, index = i;
    }
  }
  cout << mn << endl;
  for (int i = index, beg = 0; i < m; i++, beg++) {
    if (beg >= n) break;
    if (s[beg] != sh[i]) cout << beg + 1 << ' ';
  }
  cout << endl;
}
