#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string a, b;
  cin >> a >> b;
  int max1 = 0;
  for (int i = 0; i <= b.length() - a.length(); i++) {
    int k = 0;
    for (int j = 0; j < a.length(); j++) {
      if (b[i + j] == a[j]) k++;
    }
    max1 = max(max1, k);
  }
  for (int i = 0; i <= b.length() - a.length(); i++) {
    int k = 0;
    for (int j = 0; j < a.length(); j++) {
      if (b[i + j] == a[j]) k++;
    }
    if (k == max1) {
      cout << a.length() - max1 << "\n";
      for (int j = 0; j < a.length(); j++) {
        if (b[j + i] != a[j]) cout << j + 1 << " ";
      }
      break;
    }
  }
  return 0;
}
