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