#include <bits/stdc++.h>
using namespace std;
long long int n, m;
string s, t;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n >> m >> s >> t;
  pair<long long int, long long int> mi = make_pair((long long int)1e15, 0);
  s = "$" + s;
  t = "$" + t;
  for (long long int pos = 1; pos <= m - n + 1; ++pos) {
    string tem = "$";
    for (long long int i = pos; i <= pos + n - 1; ++i) tem.push_back(t[i]);
    long long int ch = 0;
    for (long long int i = 1; i <= n; ++i)
      if (s[i] != tem[i]) ch++;
    mi = min(mi, make_pair(ch, pos));
  }
  string tem = "$";
  cout << mi.first << '\n';
  long long int pos = mi.second;
  for (long long int i = pos; i <= pos + n - 1; ++i) tem.push_back(t[i]);
  for (long long int i = 1; i <= n; ++i)
    if (s[i] != tem[i]) cout << i << " ";
  cout << '\n';
}
