#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  int n, a[100005];
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  int i = 1;
  while (a[i] == a[1]) i++;
  if (a[i] > a[1])
    for (int j = i + 1; j <= n; j++)
      if (a[j] < a[j - 1]) {
        cout << 3 << "\n" << 1 << " " << j - 1 << " " << j;
        return 0;
      }
  if (a[i] < a[1])
    for (int j = i + 1; j <= n; j++)
      if (a[j] > a[j - 1]) {
        cout << 3 << "\n" << 1 << " " << j - 1 << " " << j;
        return 0;
      }
  cout << 0;
  return 0;
}
