#include <bits/stdc++.h>
using namespace std;
vector<int> calc(const string& s, const string& t, int start) {
  vector<int> ans;
  for (size_t i = 0; i < s.size(); ++i) {
    if (s[i] != t[start + i]) {
      ans.push_back(i + 1);
    }
  }
  return ans;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  vector<int> best(n + 1);
  for (int i = 0; i + n <= m; ++i) {
    vector<int> ans = calc(s, t, i);
    if (ans.size() < best.size()) {
      best = ans;
    }
  }
  cout << best.size() << endl;
  copy(best.begin(), best.end(), ostream_iterator<int>(cout, " "));
  cout << endl;
}
