#include <bits/stdc++.h>
using namespace std;
int n;
int sequence[100000];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> sequence[i];
  }
  if (n < 3)
    cout << 0 << endl;
  else {
    int first = sequence[0];
    int i = 1;
    while (sequence[i] == first && i < n) i++;
    if (sequence[i] > first) {
      for (int j = i + 1; j < n; j++) {
        if (sequence[j] < sequence[j - 1]) {
          cout << 3 << endl;
          cout << 1 << " " << j << " " << j + 1 << endl;
          return 0;
        }
      }
    }
    if (sequence[i] < first) {
      for (int j = i + 1; j < n; j++) {
        if (sequence[j] > sequence[j - 1]) {
          cout << 3 << endl;
          cout << 1 << " " << j << " " << j + 1 << endl;
          return 0;
        }
      }
    }
    cout << 0 << endl;
  }
  return 0;
}
