days_ago = 0 while 1: new_temp = float(input("Введите температуру: ")) if new_temp > 22: print(int(days_ago / 7)) break days_ago += 1