#include <bits/stdc++.h>
using namespace std;
int main() {
  int general_string_length, substring_length;
  cin >> substring_length >> general_string_length;
  string general_string, substring;
  cin >> substring >> general_string;
  vector<int> minimal_changes_index;
  int minimal_changes_count = 1007;
  for (int i = 0; i <= general_string_length - substring_length; ++i) {
    vector<int> changes_index;
    int changes_count = 0;
    for (int j = 0; j < substring_length; ++j) {
      if (general_string[i + j] != substring[j]) {
        changes_index.push_back(j + 1);
        ++changes_count;
      }
    }
    if (changes_count < minimal_changes_count) {
      minimal_changes_count = changes_count;
      minimal_changes_index.resize(0);
      for (int j = 0; j < changes_count; ++j) {
        minimal_changes_index.push_back(changes_index[j]);
      }
    }
  }
  printf("%d\n", minimal_changes_count);
  for (int i = 0; i < minimal_changes_count; ++i) {
    printf("%d ", minimal_changes_index[i]);
  }
  return 0;
}
