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

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

using namespace std;

// input data
int N;
vector<int> V;
vector<int> A;
vector<int> B;

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

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

    // insert your code here

    cout << 42 << endl; // print the result
    return 0;
}
