int input for in range int input if 26 if 13 and elif if if elif and c

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
n = int(input())
a = [0,0]
b = [0,0]
for i in range(n):
x = int(input())
if x%26 != 0:
if x%13 == 0 and a[0] < x:
a[0] = x
elif x%2 != 0:
if a[1] < x: a[1] = x
if b[1] < x: b[1] = x
elif x % 2 == 0 and b[0] < x:
b[0] = x
check = int(input())
print("Вычисленное контрольное значение: " , check)
if max(a[1]*a[0],b[1]*b[0]) == check: print("Контроль пройден")
else: print("Контроль не пройден")