import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		String s=sc.next();
		int cnt=0;
		for(int i=0;i<(a+b+1);i++) {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		}
		System.out.println(cnt==s.length()?"Yes":"No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		String s=sc.next();
		int cnt=0;
		for(int i=0;i<(a+b+1);i++) {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		}
		System.out.println(cnt==s.length()?"Yes":"No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		String s=sc.next();
		int cnt=0;
		for(int i=0;i<(a+b+1);i++) {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		}
		System.out.println(cnt==s.length()?"Yes":"No");
	} main {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		String s=sc.next();
		int cnt=0;
		for(int i=0;i<(a+b+1);i++) {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		}
		System.out.println(cnt==s.length()?"Yes":"No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt(); b sc.nextInt() sc.nextInt sc String s=sc.next(); s sc.next() sc.next sc int cnt=0; cnt 0 for(int i=0;i<(a+b+1);i++) {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		} int i=0; int i=0; i 0 i<(a+b+1) i (a+b+1) a+b+1 a b 1 i++ i++ i {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		} {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		} if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			} i==a i a {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			} if(s.charAt(i)=='-') {
					cnt++;
				} s.charAt(i)=='-' s.charAt(i) s.charAt s i '-' {
					cnt++;
				} cnt++ cnt {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			} if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				} s.substring(i,i+1).matches("[0-9]") s.substring(i,i+1).matches s.substring(i,i+1) s.substring s i i+1 i 1 "[0-9]" {
					cnt++;
				} cnt++ cnt System.out.println(cnt==s.length()?"Yes":"No") System.out.println System.out System System.out cnt==s.length()?"Yes":"No" cnt==s.length() cnt s.length() s.length s "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		String s=sc.next();
		int cnt=0;
		for(int i=0;i<(a+b+1);i++) {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		}
		System.out.println(cnt==s.length()?"Yes":"No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		String s=sc.next();
		int cnt=0;
		for(int i=0;i<(a+b+1);i++) {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		}
		System.out.println(cnt==s.length()?"Yes":"No");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		String s=sc.next();
		int cnt=0;
		for(int i=0;i<(a+b+1);i++) {
			if(i==a) {
				if(s.charAt(i)=='-') {
					cnt++;
				}
			}else {
				if(s.substring(i,i+1).matches("[0-9]")) {
					cnt++;
				}
			}
		}
		System.out.println(cnt==s.length()?"Yes":"No");
	}
}