#include <bits/stdc++.h>
using namespace std;
const int N = 1005;
int main() {
  int n, m;
  cin >> n >> m;
  char s[N], s2[N];
  cin >> s >> s2;
  int res = n;
  int ans[N], temp[N];
  for (int i = 0; i < n; i++) {
    ans[i] = 1;
  }
  for (int i = 0; i < m - n + 1; i++) {
    int sum = 0;
    for (int j = 0; j < n; j++) {
      if (s[j] != s2[i + j]) {
        temp[j] = 1;
        sum++;
      } else {
        temp[j] = 0;
      }
    }
    if (sum < res) {
      for (int j = 0; j < n; j++) {
        ans[j] = temp[j];
      }
      res = sum;
    }
  }
  cout << res << endl;
  for (int i = 0; i < n; i++) {
    if (ans[i]) cout << (i + 1) << " ";
  }
  cout << endl;
}
