Лазарев Артур Дмитриевич 514 HalfMore 2585
Михаил Успенский 616 ВМК МГУ HalfMore 493
n1majority = Nonen1majority_element = None
2count = 02count = 0
3while True:3while True:
4    line = input().strip()4    line = input().strip()
5    if not line:5    if not line:
6        break6        break
7    if count == 0:7    if count == 0:
n8        majority = linen8        majority_element = line
9        count = 19        count = 1
n10    elif line == majority:n10    elif line == majority_element:
11        count += 111        count += 1
12    else:12    else:
13        count -= 113        count -= 1
t14print(eval(majority))t14print(eval(majority_element))
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op