#include <stdio.h> int main() { int a,b,c,d,e,f; scanf("%d %d %d",&a,&b,&c); scanf("%d %d %d",&d,&e,&f); if(d>a){printf("yes");} else if(d==a){ if(e>b){printf("yes");} else if(e==b){ if(f>=c){printf("yes");} else printf("no"); } else printf("no"); } else printf("no"); return 0; }