# ============================================================
# №1. Вывести 50 раз слово "Hello", пронумеровать. Цикл While.
# ============================================================
i = 1
while i <= 50:
print(i, "Hello")
i += 1
# ============================================================
# №2. Вывести все степени двойки от 25 до 225. Цикл While.
# ============================================================
n = 0
while 2 ** n <= 225:
value = 2 ** n
if value >= 25:
print(value)
n += 1
# ============================================================
# №3. Вывести квадраты чисел: 100, 99, ..., 91. Цикл While.
# ============================================================
i = 100
while i >= 91:
print(i, "->", i ** 2)
i -= 1
# ============================================================
# №4. Вывести квадраты нечётных чисел от 10 до 30. Цикл While.
# ============================================================
i = 10
while i <= 30:
if i % 2 != 0:
print(i, "->", i ** 2)
i += 1
# ============================================================
# №5. Максимальное число подряд идущих попарно равных элементов.
# ============================================================
prev = int(input())
count = 1
max_count = 1
cur = int(input())
while cur != 0:
if cur == prev:
count += 1
else:
count = 1
if count > max_count:
max_count = count
prev = cur
cur = int(input())
print(max_count)
# ============================================================
# №6. Количество чётных элементов в последовательности до 0.
# ============================================================
count = 0
x = int(input())
while x != 0:
if x % 2 == 0:
count += 1
x = int(input())
print(count)
# ============================================================
# №7. Сколько элементов больше предыдущего.
# ============================================================
prev = int(input())
count = 0
x = int(input())
while x != 0:
if x > prev:
count += 1
prev = x
x = int(input())
print(count)
# ============================================================
# №8. Второй по величине элемент последовательности.
# ============================================================
x = int(input())
max1 = x
max2 = -1
x = int(input())
while x != 0:
if x > max1:
max2 = max1
max1 = x
elif x > max2 and x != max1:
max2 = x
x = int(input())
print(max2)
# ============================================================
# №9. Сколько элементов равны максимальному.
# ============================================================
x = int(input())
max_val = x
count = 1
x = int(input())
while x != 0:
if x > max_val:
max_val = x
count = 1
elif x == max_val:
count += 1
x = int(input())
print(count)