#include using namespace std; using ll = long long; #define fi first #define se second void solve(){ vector f(6); vector s(6); vector judge={"AC","WA","TLE","MLE","OLE","RE"}; string x; for(int i=0;i<6;i++){ cin>>f[i]; } for(int i=0;i<6;i++){ cin>>s[i]; } cin>>x; for(int i=1;i<6;i++){ if(judge[i]==x){ if(s[i]>=f[1]+f[2]+f[3]+f[4]+f[5]){ cout<<"Yes"<>t; while(t--){ solve(); } }