1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#include <iostream>

using namespace std;
int n,ile1,x=0;
int a[1000000];
int main()
{    cin>>n;
    for(int i=0; i<n; i++)
    {
        cin>>a[i];
      if(a[i]==1)
        ile1++;
    }
 if(ile1<2)
    x=2-ile1;
cout<<x<<endl<<"2"<<endl<<"1 2"<<endl;
    return 0;
}