sum_i=0 for i in range(int(input('Введите число последовательности: '))): a=int(input('Введите числа')) if a%5==0 and a>sum_i: sum_i=a print(sum_i)