1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <stdio.h>

int main() {
    int v, n;
    if(scanf("%i", &n));
    int k = 0;
    for(int i = 0; i < n; i++) {
        if(scanf("%i", &v));
        if(v == 1) k++;
    }
    if(k == 0) printf("2\n2\n1 2");
    else if(k == 1) printf("1\n2\n1 2");
    else if(k >= 2) printf("0\n2\n1 2");
    return 0;
}