// NOTE: it is recommended to use this even if you don't understand the following code.

#include <stdio.h>
#include <assert.h>

// constraints
#define MAXN 100000

// input data
int N, Q, i, t, x, y, b, c;
int A[MAXN];

int main() {
//  uncomment the following lines if you want to read/write from files
//  freopen("input.txt", "r", stdin);
//  freopen("output.txt", "w", stdout);

    assert(1 == scanf("%d", &N));
    for (i = 0; i < N; i++)
        assert(1 == scanf("%d", &A[i]));

    assert(1 == scanf("%d", &Q));
    for (i = 0; i < Q; i++) {
        assert(1 == scanf("%d", &t));
        if (t == 1) {
            assert(1 == scanf("%d", &x));

            // insert your code here

            printf("%d\n", 42); // print the result
        } else {
            assert(4 == scanf("%d %d %d %d", &x, &y, &b, &c));

            // insert your code here
        }
    }

    return 0;
}
