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