#include <bits/stdc++.h>
int main() {
  char str1[1005], str2[1005];
  int a[1001] = {0};
  int n, m, min = 1002;
  int i, j, z;
  scanf("%d %d", &n, &m);
  scanf("%s", str1);
  scanf("%s", str2);
  for (i = 0; i <= m - n; i++) {
    z = 0;
    int count = 0, b[1001] = {0};
    for (j = i; z < n; j++) {
      if (str2[j] != str1[z]) {
        b[z] = 1;
        count++;
      }
      z++;
    }
    if (min > count) {
      min = count;
      int y;
      for (y = 0; y < n; y++) {
        a[y] = b[y];
      }
    }
  }
  printf("%d\n", min);
  int flag = 1;
  for (i = 0; i < n; i++) {
    if (a[i] != 0 && flag == 1) {
      printf("%d", i + 1);
      flag = 0;
    } else if (a[i] != 0 && flag == 0) {
      printf(" %d", i + 1);
    }
  }
  return 0;
}
