#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B;
  cin >> A >> B;
  cin.ignore(100, '\n');
  string s, t;
  getline(cin, s);
  getline(cin, t);
  int ans, minn = 2e9;
  vector<int> solution;
  for (int j = 0; j <= t.length() - s.length(); j++) {
    ans = 0;
    vector<int> temp;
    for (int i = 0; i < s.length(); i++) {
      if (s[i] != t[i + j]) {
        ans++;
        temp.push_back(i + 1);
      }
    }
    if (ans < minn) {
      minn = ans;
      solution = temp;
    }
  }
  cout << minn << endl;
  for (vector<int>::iterator it = solution.begin(); it != solution.end(); it++)
    cout << *it << " ";
  cout << endl;
}
