using V=vector;{ll@N,c;V A(N);rep(i,N){ll@a;A[i]=a;}listS{A};while(N>1){auto T=move(S);S.clear();while(T.size()){A=T.front();T.pop_front();rep(i,N)rep(j,N)if(i!=j){auto&a=A[j];if(a==0)wt("YES"),exit(0);V B(N-1);if(a>0){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.push_back(B);}}}N--;}while(S.size()){A=S.front();S.pop_front();if(A[0]==0)wt("YES"),exit(0);}wt("NO");}