Winters are just damn freezing cold in Nvodsk! That's why a group of *n* friends prefers to take a taxi, order a pizza and call girls. The phone numbers in the city consist of three pairs of digits (for example, 12-34-56). Each friend has a phonebook of size *s*<sub class="lower-index">*i*</sub> (that's the number of phone numbers). We know that taxi numbers consist of six identical digits (for example, 22-22-22), the numbers of pizza deliveries should necessarily be decreasing sequences of six different digits (for example, 98-73-21), all other numbers are the girls' numbers.

You are given your friends' phone books. Calculate which friend is best to go to when you are interested in each of those things (who has maximal number of phone numbers of each type). 

If the phone book of one person contains some number two times, you should count it twice. That is, each number should be taken into consideration the number of times it occurs in the phone book.
The first line contains an integer *n* (1 ≤ *n* ≤ 100) — the number of friends. 

Then follow *n* data blocks that describe each friend's phone books. Each block is presented in the following form: first goes the line that contains integer *s*<sub class="lower-index">*i*</sub> and string *name*<sub class="lower-index">*i*</sub> (0 ≤ *s*<sub class="lower-index">*i*</sub> ≤ 100) — the number of phone numbers in the phone book of the *i*-th friend and the name of the *i*-th friend. The name is a non-empty sequence of uppercase and lowercase Latin letters, containing no more than 20 characters. Next *s*<sub class="lower-index">*i*</sub> lines contain numbers as "XX-XX-XX", where X is arbitrary digits from 0 to 9.
4
2 Fedorov
22-22-22
98-76-54
3 Melnikov
75-19-09
23-45-67
99-99-98
7 Rogulenko
22-22-22
11-11-11
33-33-33
44-44-44
55-55-55
66-66-66
95-43-21
3 Kaluzhin
11-11-11
99-99-99
98-65-32
If you want to call a taxi, you should call: Rogulenko.
If you want to order a pizza, you should call: Fedorov, Rogulenko, Kaluzhin.
If you want to go to a cafe with a wonderful girl, you should call: Melnikov.
3
5 Gleb
66-66-66
55-55-55
01-01-01
65-43-21
12-34-56
3 Serega
55-55-55
87-65-43
65-55-21
5 Melnik
12-42-12
87-73-01
36-04-12
88-12-22
82-11-43
If you want to call a taxi, you should call: Gleb.
If you want to order a pizza, you should call: Gleb, Serega.
If you want to go to a cafe with a wonderful girl, you should call: Melnik.
3
3 Kulczynski
22-22-22
65-43-21
98-12-00
4 Pachocki
11-11-11
11-11-11
11-11-11
98-76-54
0 Smietanka
If you want to call a taxi, you should call: Pachocki.
If you want to order a pizza, you should call: Kulczynski, Pachocki.
If you want to go to a cafe with a wonderful girl, you should call: Kulczynski.
4
0 Gleb
0 Sergey
0 Sasha
0 HrenSGori
If you want to call a taxi, you should call: Gleb, Sergey, Sasha, HrenSGori.
If you want to order a pizza, you should call: Gleb, Sergey, Sasha, HrenSGori.
If you want to go to a cafe with a wonderful girl, you should call: Gleb, Sergey, Sasha, HrenSGori.
5
0 PmfItzXdroG
0 HRykTUCkxgOaD
0 fcHIUkrn
2 eUvyUuXFvvuYobrFBxe
98-76-32
02-21-39
8 VUMvHy
97-65-41
65-70-26
54-49-11
33-33-33
76-54-31
11-11-11
82-95-22
98-75-31
If you want to call a taxi, you should call: VUMvHy.
If you want to order a pizza, you should call: VUMvHy.
If you want to go to a cafe with a wonderful girl, you should call: VUMvHy.
5
2 ZaxsHjkGMPxZgwzpya
94-20-75
96-54-32
2 gAiJXEYwXU
11-11-11
77-77-77
1 j
86-43-10
1 dRJrc
98-76-21
2 UAiXZTnBKDoKb
35-19-89
98-65-40
If you want to call a taxi, you should call: gAiJXEYwXU.
If you want to order a pizza, you should call: ZaxsHjkGMPxZgwzpya, j, dRJrc, UAiXZTnBKDoKb.
If you want to go to a cafe with a wonderful girl, you should call: ZaxsHjkGMPxZgwzpya, UAiXZTnBKDoKb.
5
4 vKHeRjJubHZ
11-11-11
99-99-99
00-00-00
52-73-46
6 hckQfheNMOgZVsa
96-53-20
50-69-33
64-78-80
77-77-77
06-10-48
33-39-96
1 RykElQYdYbQfqlrk
97-43-21
4 GDptSUmbYqkjW
87-42-10
56-87-67
86-54-20
65-43-10
6 jUEgOK
87-65-40
05-90-59
06-32-30
44-57-02
48-78-94
55-55-55
If you want to call a taxi, you should call: vKHeRjJubHZ.
If you want to order a pizza, you should call: GDptSUmbYqkjW.
If you want to go to a cafe with a wonderful girl, you should call: hckQfheNMOgZVsa, jUEgOK.
10
5 eeleGlOFWbcnIPPtnll
55-55-55
00-00-00
98-65-32
76-43-10
98-76-54
2 DMBiqRyQJkFvHPJNJp
28-97-50
87-64-10
4 bAfmtnKHohIX
61-58-93
77-77-77
53-17-51
96-43-10
3 cDX
22-22-22
77-77-77
63-30-64
1 HCeHJ
44-44-44
6 HgSpfAolwoaBQ
96-93-53
98-53-10
33-33-33
66-66-66
87-54-32
11-11-11
0 hn
7 qGRocddf
74-34-87
97-53-20
76-32-10
54-32-10
98-74-21
33-33-33
00-00-00
5 XrdtbTC
99-99-99
86-53-20
96-34-97
75-43-20
85-32-10
0 gDLEXYNyoDSgSLJSec
If you want to call a taxi, you should call: HgSpfAolwoaBQ.
If you want to order a pizza, you should call: qGRocddf.
If you want to go to a cafe with a wonderful girl, you should call: bAfmtnKHohIX.
3
5 hieu
11-22-33
22-33-55
33-66-22
99-00-22
55-33-11
4 duong
11-11-11
22-22-22
33-33-33
44-44-44
3 quan
98-76-54
76-54-32
65-43-21
If you want to call a taxi, you should call: duong.
If you want to order a pizza, you should call: quan.
If you want to go to a cafe with a wonderful girl, you should call: hieu.
2
3 ha
11-11-11
98-76-54
12-34-56
1 haha
98-76-55
If you want to call a taxi, you should call: ha.
If you want to order a pizza, you should call: ha.
If you want to go to a cafe with a wonderful girl, you should call: ha, haha.
2
2 Alex
12-12-12
99-87-76
2 Mula
22-22-22
99-87-76
If you want to call a taxi, you should call: Mula.
If you want to order a pizza, you should call: Alex, Mula.
If you want to go to a cafe with a wonderful girl, you should call: Alex.
2
2 Alex
12-12-12
99-98-76
2 Mula
22-22-22
99-98-76
If you want to call a taxi, you should call: Mula.
If you want to order a pizza, you should call: Alex, Mula.
If you want to go to a cafe with a wonderful girl, you should call: Alex.
3
5 Gleb
66-66-66
55-55-55
01-01-01
65-43-21
12-34-56
8 Serega
55-55-55
87-65-43
65-55-21
11-22-33
11-22-33
11-22-33
11-22-33
11-22-33
5 Melnik
12-42-12
87-73-01
36-04-12
88-12-22
82-11-43
If you want to call a taxi, you should call: Gleb.
If you want to order a pizza, you should call: Gleb, Serega.
If you want to go to a cafe with a wonderful girl, you should call: Serega.
2
2 sur
32-32-32
43-43-43
2 sun
22-22-22
23-41-31
If you want to call a taxi, you should call: sun.
If you want to order a pizza, you should call: sur, sun.
If you want to go to a cafe with a wonderful girl, you should call: sur.
3
1 Fedorov
21-21-21
1 Melnikov
99-99-99
1 Rogulenko
95-43-21
If you want to call a taxi, you should call: Melnikov.
If you want to order a pizza, you should call: Rogulenko.
If you want to go to a cafe with a wonderful girl, you should call: Fedorov.
3
5 Gleb
66-66-66
55-55-55
01-01-01
65-43-21
12-34-56
8 Serega
55-55-55
87-65-43
65-55-21
56-34-12
56-34-12
56-34-12
56-34-12
56-34-12
5 Melnik
12-42-12
87-73-01
36-04-12
88-12-22
82-11-43
If you want to call a taxi, you should call: Gleb.
If you want to order a pizza, you should call: Gleb, Serega.
If you want to go to a cafe with a wonderful girl, you should call: Serega.
# Wadea #
 
arr =[]
taxi1 = [0]
pizza1 = [0]
girls1 = [0]
for i in range(int(input())):
    num,name = input().split()
    num = int(num)
    if num > 0:
        taxi = 0
        pizza = 0
        girls = 0
        for i in range(num):
            r = 0
            s = input().split("-")
            s = "".join(s)
            if len(set(s)) == 1:
                taxi += 1
            else:
                for i in range(len(s)-1):
                    if int(s[i]) > int(s[i+1]):
                        r += 1
                if r == len(s) - 1:
                    pizza += 1
                else:
                    girls += 1
        arr.append([name,taxi,pizza,girls])
        if taxi > taxi1[0]:
            taxi1[0] = taxi
        if pizza > pizza1[0]:
            pizza1[0] = pizza
        if girls > girls1[0]:
            girls1[0] = girls
taxii = []
pizzaa = []
girlss = []
for j in arr:
    if j[1] == taxi1[0]:
        taxii.append(j[0])
    if j[2] == pizza1[0]:
        pizzaa.append(j[0])
    if j[3] == girls1[0]:
        girlss.append(j[0])
taxi_cout = "If you want to call a taxi, you should call: "
if len(taxii) > 1:
    for name in range(len(taxii)-1):
        taxi_cout += taxii[name] +", "
    taxi_cout = taxi_cout[:-1]
    taxi_cout += " " + taxii[-1] + "."
else:
    taxi_cout += taxii[0] + "." 

pizza_cout = "If you want to order a pizza, you should call: "
if len(pizzaa) > 1:
    for name in range(len(pizzaa)-1):
        pizza_cout += pizzaa[name] +", "
    pizza_cout = pizza_cout[:-1]
    pizza_cout += " " + pizzaa[-1] + "."
else:
    pizza_cout += pizzaa[0] + "." 

girls_cout = "If you want to call a taxi, you should call: "
if len(girlss) > 1:
    for name in range(len(girlss)-1):
        girls_cout += girlss[name] +", "
    girls_cout = girls_cout[:-1]
    girls_cout += " " + girlss[-1] + "."
else:
    girls_cout += girlss[0] + "." 

print(taxi_cout)
print(pizza_cout)
print(girls_cout)
