#include <bits/stdc++.h>
using namespace std;
const int INF = ~(1 << 31);
int gcd(int a, int b) { return (b == 0) ? a : gcd(b, a % b); }
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  int m = 0, l = 0;
  for (int i = 1; i < n; i++) {
    if (v[i] < v[m] && m != 0) {
      cout << 3 << endl;
      cout << "1 " << m + 1 << " " << i + 1 << endl;
      return 0;
    }
    if (v[i] > v[l] && l != 0) {
      cout << 3 << endl;
      cout << "1 " << l + 1 << " " << i + 1 << endl;
      return 0;
    }
    if (v[i] > v[m]) {
      m = i;
    }
    if (v[i] < v[l]) {
      l = i;
    }
  }
  cout << 0 << endl;
  return 0;
}
