#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> arr(N, 0);
  for (int i = 0; i < N; i++) {
    cin >> arr[i];
  }
  int mk = 0;
  for (int i = 0; i < N - 1; i++) {
    if (arr[i] > arr[i + 1]) {
      mk |= 1;
    } else if (arr[i] < arr[i + 1]) {
      mk |= 2;
    }
    if (mk == 3) {
      cout << 3 << endl;
      cout << 1 << " " << i + 1 << " " << i + 2 << endl;
      break;
    }
  }
  if (mk != 3) {
    cout << 0 << endl;
  }
  return 0;
}
