#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using u64 = unsigned long long;
using u32 = unsigned;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, m;
  cin >> n >> m;
  string s, t;
  cin >> s >> t;
  vector<int> k(n), min;
  for (int i = 0; i < n; ++i) {
    k.push_back(i);
  }
  for (int i = 0; i < m - n + 1; ++i) {
    min.clear();
    for (int j = 0; j < n; ++j) {
      if (t[i + j] != s[j]) {
        min.push_back(j);
      }
    }
    if (min.size() < k.size()) {
      k = min;
    }
  }
  cout << k.size() << "\n";
  for (int i = 0; i < k.size(); ++i) {
    cout << k[i] + 1 << " ";
  }
  cout << "\n";
  return 0;
}
