#include <bits/stdc++.h>
using namespace std;
const int maxn = 100101;
int L[maxn], R[maxn], a[maxn], x;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  x = 1;
  memset(L, 0, sizeof(L));
  for (int i = 2; i <= n; i++)
    if (a[x] < a[i])
      L[i] = x;
    else
      x = i;
  memset(R, 0, sizeof(R));
  x = n;
  for (int i = n - 1; i; i--)
    if (a[x] < a[i])
      R[i] = x;
    else
      x = i;
  for (int i = 1; i <= n; i++)
    if (L[i] && R[i]) {
      cout << 3 << endl;
      cout << L[i] << " " << i << " " << R[i] << endl;
      return 0;
    }
  x = 1;
  memset(L, 0, sizeof(L));
  for (int i = 2; i <= n; i++)
    if (a[x] > a[i])
      L[i] = x;
    else
      x = i;
  memset(R, 0, sizeof(R));
  x = n;
  for (int i = n - 1; i; i--)
    if (a[x] > a[i])
      R[i] = x;
    else
      x = i;
  for (int i = 1; i <= n; i++)
    if (L[i] && R[i]) {
      cout << 3 << endl;
      cout << L[i] << " " << i << " " << R[i] << endl;
      return 0;
    }
  cout << 0 << endl;
  return 0;
}
