#include <bits/stdc++.h>
using namespace std;
long long int arr[100001];
long long int s[1000010];
long long int l[1000010];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  char dir = 'n';
  long long int f = 0, s = -1, t = -1;
  for (int i = 1; i < n; i++) {
    if (dir == 'n') {
      if (arr[i] > arr[f]) {
        dir = 'i';
        s = i;
      } else if (arr[i] < arr[f]) {
        dir = 'd';
        s = i;
      }
    } else {
      if (dir == 'i') {
        if (arr[i] > arr[s]) {
          s = i;
        } else if (arr[i] < arr[s]) {
          t = i;
          break;
        }
      } else if (dir == 'd') {
        if (arr[i] > arr[s]) {
          t = i;
          break;
        } else if (arr[i] < arr[s]) {
          s = i;
        }
      }
    }
  }
  if (s == -1 || t == -1)
    cout << 0 << endl;
  else {
    cout << 3 << endl << f + 1 << " " << s + 1 << " " << t + 1 << endl;
  }
  return 0;
}
