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

#include <fstream>
#include <iostream>
#include <vector>

using namespace std;

// input data
int N, Q;
vector<int> V;

int main() {
    //  uncomment the following lines if you want to read/write from files
    //  ifstream cin("input.txt");
    //  ofstream cout("output.txt");

    cin >> N >> Q;
    V.resize(N + 1);
    for (int i = 1; i <= N; i++) cin >> V[i];

    for (int i = 0; i < Q; i++) {
        int t;
        cin >> t;
        if (t == 1) {
            int a, b;
            cin >> a >> b;
            // insert your code here
        } else {
            int l, r;
            cin >> l >> r;
            // insert your code here
            cout << 23 << endl;
        }
    }

    return 0;
}
