#include <bits/stdc++.h>
using namespace std;
const long long MOD = 998244353;
const long long N = 3e5 + 5;
long long a[N];
int main() {
  long long i, j, k, l = 0;
  long long n, m, t;
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  if (n <= 2) return cout << 0 << endl, 0;
  for (i = 1; i < n; i++) {
    if (a[i] > a[i - 1]) {
      if (a[0] > a[i - 1]) {
        cout << 3 << endl;
        cout << 1 << " " << i << " " << i + 1 << endl;
        return 0;
      }
    } else if (a[i] < a[i - 1]) {
      if (a[0] < a[i - 1]) {
        cout << 3 << endl;
        cout << 1 << " " << i << " " << i + 1 << endl;
        return 0;
      }
    }
  }
  cout << 0 << endl;
  return 0;
}
