#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  deque<int> ar(n);
  for (auto &i : ar) cin >> i;
  for (auto i = 1; i < ar.size() - 1; ++i) {
    if (ar[0] < ar[i] && ar[i] > ar[i + 1] ||
        ar[0] > ar[i] && ar[i] < ar[i + 1]) {
      cout << 3 << endl;
      cout << 1 << " " << i + 1 << " " << i + 2;
      return 0;
    }
  }
  cout << 0 << endl;
  return 0;
}
