#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n, i, a, b, c;
  cin >> n;
  long int nu[n];
  for (i = 0; i < n; i++) cin >> nu[i];
  vector<int> ind;
  long int temp = -1, x = 0;
  while (x != n) {
    if (temp != nu[x]) ind.push_back(x);
    temp = nu[x];
    x++;
  }
  n = ind.size();
  long int num[n];
  for (i = 0; i < n; i++) num[i] = nu[ind[i]];
  bool val[n - 1];
  for (i = 0; i < n - 1; i++) val[i] = (num[i] <= num[i + 1]);
  bool ans = true;
  for (i = 0; i < n - 2; i++)
    if (val[i] != val[i + 1]) ans = false;
  if (ans)
    cout << 0;
  else {
    cout << 3 << endl;
    for (i = 0; i < n - 2; i++)
      if (val[i] != val[i + 1]) {
        cout << ind[i] + 1 << ' ' << ind[i + 1] + 1 << ' ' << ind[i + 2] + 1;
        break;
      }
  }
  return 0;
}
