15 lines
380 B
Python
15 lines
380 B
Python
|
from functools import reduce
|
||
|
numbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||
|
modulo = 42
|
||
|
nbr_mod = []
|
||
|
for i in range(10):
|
||
|
numbers[i] = int(input())
|
||
|
test = numbers[i] % modulo
|
||
|
if len(nbr_mod) != 0 :
|
||
|
lista = list(map(lambda x : x == test,nbr_mod))
|
||
|
if not any(lista):
|
||
|
nbr_mod.append(test)
|
||
|
else :
|
||
|
nbr_mod.append(test)
|
||
|
print(len(nbr_mod))
|