#include using namespace std; int main(){ int N; cin>>N; int A[N],B[N],C[N],D[N]; string R[N]; for(int i=0;i>A[i]>>B[i]>>C[i]>>D[i]>>R[i]; } int ans[10]={0,1,1,1,1,1,1,1,1,1}; for(int i=0;i