using V=vector;{ll@N,c;V A(N);rep(i,N){ll@a;A[i]=a;}setS{A};while(N>1){auto T=move(S);S.clear();while(T.size()){T.erase(A=*T.begin());rep(i,N)rep(j,N)if(i!=j){auto&a=A[j];if(a==0)wt("YES"),exit(0);V B(N-1);c=0;rep(k,N)if(k!=i&&k!=j)B[c++]=A[k];V D{A[i]+a,A[i]-a,A[i]*a,A[i]/a};rep[D](d,4)if(d>0){B[c]=d,S.insert(B);}}}N--;}wt(S.count({0})?"YES":"NO");}