#include <bits/stdc++.h>
using namespace std;
FILE *outt, *inn;
const int N = 3e5 + 10;
int n, a[N], res[N], ans, c, l, r;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  ans = -1;
  for (int i = 0; i < n; i++) {
    l = r = i;
    while (l > 0 && a[l - 1] % a[i] == 0) l--;
    while (r < n - 1 && a[r + 1] % a[i] == 0) r++;
    if ((r - l) > ans) ans = r - l, c = 0;
    if ((r - l) == ans) res[c++] = l;
    i = r;
  }
  printf("%d %d\n", c, ans);
  for (int i = 0; i < c; i++) {
    printf("%d ", res[i] + 1);
  }
  return 0;
}
