#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9;
const long long inf64 = 1e18;
const long long MOD = inf + 7;
const long double PI = acos(-1.0);
int32_t main() {
  ios::sync_with_stdio(false), cin.tie(nullptr);
  ;
  long long n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  long long id, op = inf;
  for (long long i = 0; i < m; i++) {
    if (i + n - 1 < m) {
      long long cnt = 0;
      for (long long j = i; j <= i + n - 1; j++) {
        if (s[j - i] != t[j]) cnt++;
      }
      if (cnt < op) {
        op = cnt;
        id = i;
      }
    }
  }
  cout << op << "\n";
  for (long long i = id; i <= id + n - 1; i++) {
    if (s[i - id] != t[i]) cout << i - id + 1 << " ";
  }
}
