#include using namespace std; int main(){ int n,a,b,c,d; string text; vector set(10,0); cin>>n; for(int i=0;i>a>>b>>c>>d>>text; if(text=="YES"){ set[a]++; set[b]++; set[c]++; set[d]++; } else if(text=="NO"){ set[a]--; set[b]--; set[c]--; set[d]--; } } int m=-10000; for(int i=0;i<10;i++){ m=max(m,set[i]); } for(int i=0;i<10;i++) { if(m==set[i]) cout<