# python にはswitch文やcase文がない。# 代わりに「if...elif...else」文で条件分岐を記述する。
s = input()
if s == "baseball":
print(9)
elif s == "soccer":
print(11)
elif s == "rugby":
print(15)
elif s == "basketball":
print(5)
else: # volleyball
print(6)
h = int(input())
if6 < h <= 8:
print("45 min")
elif h > 8:
print("60 min")
else:
print("no break")
v, d = map(int, input().split())
print(d // v)
n = int(input())
d = {} # dictionary(辞書)型、keyとvalueで構成する。for _ inrange(n):
b, p = input().split()
b = int(b)
d[b] = p # key=背番号 : value=名前 で辞書に登録
d = sorted(d.items()) # keyで昇順にソートfor i inrange(n):
print(d[i][0], d[i][1])