#include <bits/stdc++.h>
using namespace std;
string s;
string t;
int main() {
  int n, m;
  vector<int> ans;
  vector<int> newans;
  scanf("%d %d", &n, &m);
  cin >> s;
  cin >> t;
  for (int i = 0; i < n; i++) {
    ans.push_back(i);
  }
  for (int i = 0; i < m - n + 1; i++) {
    newans.clear();
    for (int j = 0; j < n; j++) {
      if (s[j] != t[i + j]) {
        newans.push_back(j);
      }
    }
    if (newans.size() < ans.size()) {
      ans = newans;
    }
  }
  int sz = ans.size();
  printf("%d\n", sz);
  for (int j = 0; j < sz; j++) {
    printf("%d ", ans[j] + 1);
  }
  printf("\n");
}
