def binary(a):
    ret=[]
    rem=0
    while a>0:
        rem=int(a%2)
        ret.append(str(rem))
        a=int(a/2)
    s= ''.join(ret)
    s=s[::-1]
    return s
def hamming(A):
    bins=[]
    for i in A:
        bins.append(binary(i))
    


    return bins
def match(a,b):
    if 
    for i in range()
print(hamming([1,2,3,4,5,6,7]))
         