function main(input) {
    var args = input.trim().split(/\r\n|\n/);
    var values = args[0].split(" ").map(v => parseInt(v, 10));
    var N = values[0];
    var A = values[1];
    var B = values[2];
    var C = values[3];
    var D = values[4];
    var square = args[1];

    var needsThreeSqure = false;
    if (C > D) {
        needsThreeSqure = true;
    }

    var doubleRockIndex = square.indexOf("##");
    if (doubleRockIndex !== -1 && (doubleRockIndex < C || square.indexOf("##") < D)) {
        console.log("No");
        return;
    }

    if (needsThreeSqure && square.indexOf("...") === -1) {
        console.log("No");
        return;
    }

    console.log("Yes");
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
