1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
//#define cerr if(0)cout

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef long double ld;
typedef vector<int> vi;
typedef vector<ll> vll;

const int duzo = 1000007;
int a[duzo];

int main() {
  ios_base::sync_with_stdio(0);
  // cin.tie(0);
  int n, ile1 = 0;
  cin >> n;
  for(int i = 1; i <= n; ++i) {
    cin >> a[i];
    if(a[i] == 1) ++ile1;
  }
  if(ile1 >= 2) cout << 0;
  else cout << 2 - ile1;
  cout << "\n2\n1 2";
  return 0;
}