1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include<bits/stdc++.h>
using namespace std;


int32_t main(){
    ios::sync_with_stdio(false);
    int n;
    cin >> n;
    int ile1 = 0,x=0;
    for(int i=0;i<n;i++){
        cin >> x;
        ile1 += (x==1 ? 1 : 0);
    }
    ile1 = min(2,ile1);
    cout<<2-ile1<<"\n"<<2<<"\n"<<"1 2\n";
}