#include <bits/stdc++.h>
using namespace std;
const int INF = 2034567891;
const long long int INF64 = 1234567890123456789ll;
long long int gcd(long long int a, long long int b) {
  (b == 0 ? a : gcd(b, a % b));
}
long long int lcm(long long int a, long long int b) {
  return (a * (b / gcd(a, b)));
}
int main() {
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  vector<int> ans;
  int ma = -1;
  for (long long int i = 0; i < m - n + 1; i++) {
    int cnt = 0;
    vector<int> v;
    int k = i;
    for (long long int j = 0; j < n; j++) {
      if (t[k] == s[j])
        cnt++;
      else
        v.push_back(j + 1);
      k++;
    }
    if (ma < cnt) {
      ans = v;
      ma = cnt;
    }
  }
  cout << ans.size() << endl;
  for (auto i : ans) cout << i << " ";
}
