AE
Size: a a a
AE
V
ВТ
RS

file = open("27986_B.txt")
m = 0
a = list(map(int,file.read().split("\n")))
a.pop()
for i in range(len(a)):
for j in range(i + 1,len(a)):
s = a[i] + a[j]
if s > m and s % 7 == 0 and s % 49 != 0:
m = s
print(m)I

АА
AE

file = open("27986_B.txt")
m = 0
a = list(map(int,file.read().split("\n")))
a.pop()
for i in range(len(a)):
for j in range(i + 1,len(a)):
s = a[i] + a[j]
if s > m and s % 7 == 0 and s % 49 != 0:
m = s
print(m)RS
V

file = open("27986_B.txt")
m = 0
a = list(map(int,file.read().split("\n")))
a.pop()
for i in range(len(a)):
for j in range(i + 1,len(a)):
s = a[i] + a[j]
if s > m and s % 7 == 0 and s % 49 != 0:
m = s
print(m)RS
E
БГ
V
AE
E
AE
V
RS
V
БГ