n = int(input())
d = dict()
for i in range(n):
data = input().split(';')
d[i]=[data[0],data[1],data[2],data[3]]
table = dict()
for el in d.values():
if el[0] not in table and el[2] not in table:
table[el[0]] = [0,0,0,0,0]
table[el[2]] = [0,0,0,0,0]
elif el[0] in table and el[2] not in table:
table[el[2]] = [0, 0, 0, 0, 0]
elif el[0] not in table and el[2] in table:
table[el[0]] = [0, 0, 0, 0, 0]
for el in d.values():
if el[1] > el[3]:
table[el[0]][0] += 1
table[el[0]][1] += 1
table[el[0]][2] += 0
table[el[0]][3] += 0
table[el[0]][4] += 3
table[el[2]][0] += 1
table[el[2]][1] += 0
table[el[2]][2] += 0
table[el[2]][3] += 1
table[el[2]][4] += 0
elif el[1] < el[3]:
table[el[0]][0] += 1
table[el[0]][1] += 0
table[el[0]][2] += 0
table[el[0]][3] += 1
table[el[0]][4] += 0
table[el[2]][0] += 1
table[el[2]][1] += 1
table[el[2]][2] += 0
table[el[2]][3] += 0
table[el[2]][4] += 3
elif el[1] == el[3]:
table[el[0]][0] += 1
table[el[0]][1] += 0
table[el[0]][2] += 1
table[el[0]][3] += 0
table[el[0]][4] += 1
table[el[2]][0] += 1
table[el[2]][1] += 0
table[el[2]][2] += 1
table[el[2]][3] += 0
table[el[2]][4] += 1
for key, value in table.items():
print(key+':', value[0], value[1], value[2], value[3], value[4])
n = int(input())
d = dict()
for i in range(n):
data = input().split(';')
d[i]=[data[0],data[1],data[2],data[3]]
print(d)
table = dict()
for el in d.values():
if el[0] and el[2] not in table:
table[el[0]] = []
table[el[2]] = []
print(table)
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from nose import run_exit
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_exit())
*/1 * * * * /usr/bin/python3 /home/xxx/.local/bin/nosetests /home/xxx/PycharmProjects/AutoTest/features/nose_tests/script.py > /tmp/qwert2.log 2>&1