#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long m;
  cin >> m;
  string a, b;
  cin >> a >> b;
  long long ma = 1e18 + 5, pos;
  for (long long i = 0; i < m - n + 1; i++) {
    long long cnt = 0;
    for (long long j = i; j < i + n; j++)
      if (a[j - i] != b[j]) cnt++;
    if (cnt < ma) {
      ma = cnt;
      pos = i;
    }
  }
  cout << ma << "\n";
  for (long long i = pos; i < pos + n; i++) {
    if (b[i] != a[i - pos]) cout << i - pos + 1 << " ";
  }
  return 0;
}
