((input) => {
    const lines = input.split("\n");
    const A = lines[0].split(" ").map(x => x | 0)[0];
    const cond = lines[1].split("").find((e, idx) => idx === A ? e !== "-": e === "-") === null;

    console.log(cond ? "Yes" : "No");
})(require("fs").readFileSync("/dev/stdin", "utf8"));
//})(``);