#include <bits/stdc++.h>
using namespace std;
int a[100005];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  int Min = a[1];
  int Max = a[1];
  int fg1 = 0;
  for (int i = 2; i <= n; i++) {
    if (a[i] == Max) continue;
    if (a[i] > Max) {
      Max = a[i];
      fg1 = i;
    } else {
      if (fg1) {
        cout << 3 << endl << 1 << " " << fg1 << " " << i << endl;
        return 0;
      }
    }
  }
  fg1 = 0;
  for (int i = 2; i <= n; i++) {
    if (a[i] == Min) continue;
    if (a[i] < Min) {
      Min = a[i];
      fg1 = i;
    } else {
      if (fg1) {
        cout << 3 << endl << 1 << " " << fg1 << " " << i << endl;
        return 0;
      }
    }
  }
  puts("0");
  return 0;
}
