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

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