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
#include <bits/stdc++.h>
using namespace std;
int main() {
	
	ios_base::sync_with_stdio(false);

	int N, temp, one_c = 0, x = 0;
	cin>>N;

	while(N-->0) {
		cin>>temp;
		
		if(temp == 1) 
			one_c++;
			
	}

	if(one_c < 2) x = 2 - one_c;
	
	cout << x << '\n';
	cout << 2 << '\n';
	cout << 1 << " " << 2 << endl;
		
	return 0;
}