1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include<bits/stdc++.h>
#define fr front()
#define f first
#define s second
#define mp make_pair
using namespace std;
int n,a,wynik;
int main()
{
    ios_base::sync_with_stdio(0);
cin>>n;
    for(int i=1;i<=n;i++)
        {
        cin>>a;
        if(a==1)wynik++;
        }
cout<<max(0,2-wynik)<<'\n';
cout<<2<<'\n';
cout<<"1 2";
}