#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, mins = 1234, mini = 0;
  string s, t;
  cin >> a >> b;
  cin >> s >> t;
  for (int i = 0; i < b - a + 1; i++) {
    int sum = 0;
    for (int j = 0; j < a; j++) {
      if (t[i + j] != s[j]) sum++;
    }
    if (sum < mins) {
      mins = sum;
      mini = i;
    }
  }
  cout << mins << endl;
  for (int i = 0; i < a; i++) {
    if (s[i] != t[mini + i]) cout << i + 1 << " ";
  }
  return 0;
}
