#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  string s, t;
  cin >> n >> m >> s >> t;
  int min = n, count, i, j, exchange[n];
  for (i = 0; i < n; i++) {
    exchange[i] = 0;
  }
  for (i = 0, count = 0; i <= m - n; i++) {
    count = 0;
    for (j = 0; j < n; j++) {
      if (s[j] != t[i + j]) {
        count++;
      }
    }
    if (count <= min) {
      min = count;
      for (j = 0; j < n; j++) {
        if (s[j] != t[i + j]) {
          exchange[j] = 1;
        } else {
          exchange[j] = 0;
        }
      }
    }
  }
  cout << min << endl;
  for (i = 0; i < n; i++) {
    if (exchange[i]) {
      cout << i + 1 << " ";
    }
  }
  cout << endl;
  return 0;
}
