#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 5;
const int INF = 1e9 + 7;
long long int arr[MAX];
signed main() {
  cin.tie(NULL);
  cout.tie(NULL);
  ios::sync_with_stdio(0);
  long long int n1, n2;
  cin >> n1 >> n2;
  string a, b;
  cin >> a >> b;
  long long int ans = INF;
  long long int pos;
  long long int cnt = 0;
  for (long long int i = 0; i < n2 - n1 + 1; ++i) {
    long long int cnt = 0;
    for (long long int j = 0; j < n1; ++j) {
      if (a[j] == b[i + j]) {
        cnt++;
      }
    }
    cnt = n1 - cnt;
    if (cnt < ans) {
      ans = cnt;
      pos = i;
    }
  }
  cout << ans << endl;
  for (long long int i = pos; i < pos + n1; ++i) {
    if (b[i] != a[i - pos]) {
      cout << i - pos + 1 << ' ';
    }
  }
  cout << endl;
  return 0;
}
