#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  int count1 = 0, ans = INT_MAX;
  vector<int> v1, v2;
  for (int i = 0; i <= m - n; i++) {
    count1 = 0;
    v1.clear();
    for (int j = 0; j < n; j++) {
      if (s[j] == t[i + j]) {
        count1++;
      } else {
        v1.push_back(j + 1);
      }
    }
    if (n - count1 < ans) {
      ans = n - count1;
      v2 = v1;
    }
  }
  cout << ans << endl;
  int i = 0;
  while (i < ans) {
    cout << v2[i] << ' ';
    i++;
  }
  cout << endl;
  return 0;
}
