#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int lena, lenb;
  cin >> lena >> lenb;
  string a, b;
  cin >> a >> b;
  long long int mn = LLONG_MAX;
  vector<long long int> replacement;
  for (long long int i = 0; i <= lenb - lena; i++) {
    vector<long long int> temp;
    for (long long int j = 0; j < lena; j++) {
      if (b[i + j] == a[j]) continue;
      temp.push_back(j + 1);
    }
    if (mn > temp.size()) {
      replacement = temp;
      mn = temp.size();
      temp.clear();
    }
  }
  cout << mn << '\n';
  for (long long int i = 0; i < mn; i++) cout << replacement[i] << " ";
  return 0;
}
