#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> mas(n);
  for (int i = 0; i < n; i++) {
    cin >> mas[i];
  }
  if (n < 3) {
    cout << 0;
    return 0;
  }
  int min = 0;
  int sr = -1;
  for (int i = 1; i < n; i++) {
    if (sr > i) {
      if (mas[i] < mas[min]) min = i;
      continue;
    }
    if (mas[i] > mas[min]) {
      sr = i;
      for (int j = i + 1; j < n; j++)
        if (mas[j] < mas[sr]) {
          cout << 3 << endl;
          cout << min + 1 << " " << sr + 1 << " " << j + 1;
          return 0;
        } else if (mas[j] > mas[sr]) {
          sr = j;
          break;
        }
    } else
      min = i;
  }
  min = 0;
  sr = -1;
  for (int i = 1; i < n; i++) {
    if (sr > i) {
      if (mas[i] > mas[min]) min = i;
      continue;
    }
    if (mas[i] < mas[min]) {
      sr = i;
      for (int j = i + 1; j < n; j++)
        if (mas[j] > mas[sr]) {
          cout << 3 << endl;
          cout << min + 1 << " " << sr + 1 << " " << j + 1;
          return 0;
        } else if (mas[j] < mas[sr]) {
          sr = j;
          break;
        }
    } else
      min = i;
  }
  cout << 0;
}
