import java.util.Scanner;

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

		String ans = "Yes";
		for(int i = 0; i < a + b; i++) {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
	}
} 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();
		int b = sc.nextInt();
		String s = sc.next();

		String ans = "Yes";
		for(int i = 0; i < a + b; i++) {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();

		String ans = "Yes";
		for(int i = 0; i < a + b; i++) {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();

		String ans = "Yes";
		for(int i = 0; i < a + b; i++) {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc String ans = "Yes"; ans "Yes" for(int i = 0; i < a + b; i++) {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		} int i = 0; int i = 0; i 0 i < a + b i a + b a b i++ i++ i {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		} {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		} char ch = s.charAt(i); ch s.charAt(i) s.charAt s i if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			} i == a && ch != '-' i == a i a ch != '-' ch '-' {
				ans = "No";
				break;
			} ans = "No" ans "No" break; if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			} i != a &&  !('0' <= ch && ch <= '9') i != a i a !('0' <= ch && ch <= '9') ('0' <= ch && ch <= '9') '0' <= ch '0' ch ch <= '9' ch '9' {
				ans = "No";
				break;
			} ans = "No" ans "No" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();

		String ans = "Yes";
		for(int i = 0; i < a + b; i++) {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();

		String ans = "Yes";
		for(int i = 0; i < a + b; i++) {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

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

		String ans = "Yes";
		for(int i = 0; i < a + b; i++) {
			char ch = s.charAt(i);

			if(i == a && ch != '-') {
				ans = "No";
				break;
			} else if( i != a &&  !('0' <= ch && ch <= '9') ) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
	}
}