import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		String S = sc.next();

		for (int i=0; i<S.length(); i++){
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
		return;
    }
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		String S = sc.next();

		for (int i=0; i<S.length(); i++){
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
		return;
    }
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		String S = sc.next();

		for (int i=0; i<S.length(); i++){
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
		return;
    } main {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		String S = sc.next();

		for (int i=0; i<S.length(); i++){
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
		return;
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc String S = sc.next(); S sc.next() sc.next sc for (int i=0; i<S.length(); i++){
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		} int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		} {
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		} if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			} i == a i a {
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			} if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				} S.charAt(i) != '-' S.charAt(i) S.charAt S i '-' {
					System.out.println("No");
					return;
				} System.out.println("No") System.out.println System.out System System.out "No" return; {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			} if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				} !Character.isDigit(S.charAt(i)) Character.isDigit(S.charAt(i)) Character.isDigit Character S.charAt(i) S.charAt S i {
					System.out.println("No");
					return;
				} System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" return; String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		String S = sc.next();

		for (int i=0; i<S.length(); i++){
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
		return;
    }
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		String S = sc.next();

		for (int i=0; i<S.length(); i++){
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
		return;
    }
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		String S = sc.next();

		for (int i=0; i<S.length(); i++){
			if (i == a){
				if (S.charAt(i) != '-'){
					System.out.println("No");
					return;
				}
			}else {
				if (!Character.isDigit(S.charAt(i))){
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
		return;
    }
}
