from sys import stdin
print("Jutge enters.")
cnt = 0
n = int(input())
while n:
    txt = list()
    for _ in range(n):
        txt.append(stdin.readline().split())
    print(cnt, '/', count_unique_words(txt))
    cnt += 1
    n = int(input())
print("Jutge exits.")