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

int main()
{
    long int n, j, x, y;
    time_t t;
    scanf("%ld", &n);
    for(j=0;j<n;j++){
        scanf("%ld%ld", &x, &y);
    }
    srand((unsigned) time(&t));
    long int num = (rand() % 5); 
    printf("%ld ", num);
    return 0;
}