#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[10100], b[101010];
  int n, m;
  cin >> n >> m;
  scanf("%s", a);
  scanf("%s", b);
  int ans = 0x3f3f3f3f, t = 0;
  for (int i = 0; i <= m - n; i++) {
    int p = 0;
    for (int j = 0; j < n; j++) {
      if (a[j] != b[i + j]) p++;
    }
    ans = min(ans, p);
    if (p == ans) t = i;
  }
  printf("%d\n", ans);
  for (int i = 0; i < n; i++) {
    if (b[t + i] != a[i]) printf("%d ", i + 1);
  }
  return 0;
}
