1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#include <iostream>

using namespace std;

int main(){
    int n,l=0,a;
    cin >> n;
    while(n--){
        cin >> a;
        if(a==1)l++;
    }
    cout<<2-min(2,l)<<endl<<"2"<<endl<<"1 2"<<endl;
}