number = int(input("Введите число: "))
if 2 <= number <= 5:number += 10elif 7 <= number <= 40:number -= 100elif number <= 0 or number >= 3000:number *= 3else:number = 0
print("Результат:", number)
number = int(input("Введите число: "))
if 2 <= number <= 5:
number += 10
elif 7 <= number <= 40:
number -= 100
elif number <= 0 or number >= 3000:
number *= 3
else:
number = 0
print("Результат:", number)