#include using namespace std; int main(){ int A,B,C,a,b,c; char x,y,z,w; cin>>A>>x>>B>>y>>C; cin>>a>>z>>b>>w>>c; if(a>A){ cout<<"NO"<a){ cout<<"YES"<B){ cout<<"NO"<b){ cout<<"YES"<C){ cout<<"NO"<