puts (gets>=gets ? "YES" : "NO")