#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> N; for(i=0;i<(1<> a[i]; if(a[0]!=0){ cout << "No" << endl; return 0; } if(N==1 && a[0]==0){ cout << "Yes" << endl; return 0; } for(i=3;i<(1<