print "YES" if raw_input() >= raw_input() else "NO"