#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 1, 0, -1};
int dy[] = {1, 0, -1, 0};
const int N = 1e5 + 10, M = 1e6 + 10, OOm = 0x3f3f3f3f;
string blank = "";
int n;
int arr[N];
int nonInc() {
  for (int i = 1; i < n; i++) {
    if (arr[i] < arr[i - 1]) return i;
  }
  return -1;
}
int nonDec() {
  for (int i = 1; i < n; i++) {
    if (arr[i] > arr[i - 1]) return i;
  }
  return -1;
}
void solve() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr[i];
  int i = 1;
  while (arr[i] == arr[i - 1] && i < n) i++;
  int x = (arr[i] > arr[i - 1]) ? nonInc() : nonDec();
  if (x == -1)
    cout << 0;
  else {
    cout << 3 << '\n' << 1 << " " << x << " " << x + 1 << '\n';
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  solve();
  cerr << "Time elapsed: " << clock() / 1000 << " ms" << '\n';
}
