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

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

#define MAXN 200000

int K, L, N, i;
int U[MAXN - 1], V[MAXN - 1];

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

    assert(2 == scanf("%d%d", &N, &K));

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

    L = 0;


    // INSERT YOUR CODE HERE


    printf("%d\n", L);

    return 0;
}
