#include <bits/stdc++.h>
using namespace std;
long long n, m, sum, num, sam, nam;
string q, w, e;
int main() {
  cin >> n >> m;
  cin >> q >> w;
  long long mini = 1e9;
  for (int i = 0; i < w.size(); ++i) {
    for (int j = i; j < min(q.size() + i, w.size()); ++j) {
      e += w[j];
    }
    if (e.size() != q.size()) {
      break;
    }
    for (int j = 0; j < q.size(); ++j) {
      if (e[j] != q[j]) {
        sum++;
      }
    }
    mini = min(mini, sum);
    sum = 0;
    e = "";
  }
  e = "";
  sum = 0;
  cout << mini << endl;
  for (int i = 0; i < w.size(); ++i) {
    for (int j = i; j < min(q.size() + i, w.size()); ++j) {
      e += w[j];
    }
    if (e.size() != q.size()) {
      break;
    }
    for (int j = 0; j < q.size(); ++j) {
      if (q[j] != e[j]) {
        sum++;
      }
    }
    if (sum == mini) {
      for (int j = 0; j < q.size(); ++j) {
        if (q[j] != e[j]) {
          cout << j + 1 << " ";
        }
      }
      return 0;
    }
    sum = 0;
    e = "";
  }
  return 0;
}
