#include <iostream>
using namespace std;
constexpr int MOD = 676767677;

int inizia(long long N) {
    return 67;
}

int aggiorna(long long x, int y) {
    return 67;
}



// GRADER DI ESEMPIO
// NON MODIFICARE AL DI SOTTO DI QUESTA LINEA

#ifndef EVAL
int main() {
    long long N;
    int Q;
    cin >> N >> Q; 
    
    cout << inizia(N) << '\n';
    for (int i = 0; i < Q; i++) {
        long long x;
        int y; 
        cin >> x >> y;

        cout << aggiorna(x, y) << '\n';
    }
}

#endif

