#1
a = int(input("Оценка: "))
if a < 40:
print("2")
if (a >= 40) and (a < 65):
print("3")
if (a >= 65) and (a < 84):
print("4")
if (a >= 85) and (a <= 101):
print("5")
#2
6 раз
#3
18
#4
step = 2
sum = 1
for i in range(4):
sum *= 3/(2 ** step)
step +=1
print(sum)
#1
a = int(input("Оценка: "))
if a < 40:
print("2")
if (a >= 40) and (a < 65):
print("3")
if (a >= 65) and (a < 84):
print("4")
if (a >= 85) and (a <= 101):
print("5")
#2
6 раз
#3
18
#4
step = 2
sum = 1
for i in range(4):
sum *= 3/(2 ** step)
step +=1
print(sum)