#include <bits/stdc++.h>
using namespace std;
int main() {
  int n1, n2;
  cin >> n1 >> n2;
  string s1, s2;
  cin >> s1 >> s2;
  int i, j, k, cnt = 0, ans = INT_MAX, ind;
  for (i = 0; i <= n2 - n1; i++) {
    cnt = 0;
    for (j = i; j < i + n1; j++) {
      if (s1[j - i] != s2[j]) {
        cnt++;
      }
    }
    if (cnt < ans) {
      ans = cnt;
      ind = i;
    }
  }
  if (ans) {
    cout << ans << "\n";
    for (i = ind; i < ind + n1; i++) {
      if (s2[i] != s1[i - ind]) {
        cout << i - ind + 1 << " ";
      }
    }
  } else
    cout << ans;
}
