https://www.acmicpc.net/problem/3052
num=[0]*42 count=0 for i in range(10): a=int(input()) num[a%42]+=1 for i in range(42): if num[i]>0: count+=1 print(count)