我都是抄的。。。。。

```def lmx (sum3,sum5,ao):
        if len(ao)==0:
            if sum3==sum5:
                return True
            else:
                return False
        else:
            return lmx(sum3+ao[0],sum5,ao[1:]) or lmx(sum3,sum5+ao[0],ao[1:])
while True:
    try :
        n,a=input(),input().split()
        b=list(map(int, a))
        sum0=sum(b)
        a5=[]
        a3=[]
        ao=[]
        
        for i in b:
            if i % 5==0:
                
                a5.append(i)
                
            elif i % 3 == 0:
                a3.append(i)
                
            else:
                
                ao.append(i)
        
        sum3=sum(a3)
        sum5=sum(a5)
        if lmx(sum3,sum5,ao) :
            print('true')
        else:
            print('false')
        
    except :
        break