// JOI11-quest2.cpp : Defines the entry point for the console application.
//
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>


int main(void)
{
	int team, point[101] = { 0 };
	scanf("%d", &team);

	int a, b, c, d;
	for (int i = 0; i < (team * (team - 1)) / 2; i++) {
		scanf("%d %d %d %d", &a, &b, &c, &d);

		if (c > d) {
			point[a] += 3;
		}
		else if (c < d) {
			point[b] += 3;
		}
		else {
			point[a] += 1;
			point[b] += 1;
		}
	}

	int rank;
	for (int i = 1; i <= team; i++) {
		rank = 1;
		for (int j = 1; j <= team; j++) {
			if (i == j) {
				continue;
			}
			if (point[i] < point[j]) {
				rank++;
			}
		}
		printf("%d\n", rank);
	}

	return 0;
}