($x,$z)=glob<>;<>;$%+=$z*$'>$x*$`for<>=~$";print$%?NO:YES