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();
		String ans[] = {"Yes", "No"};
		sc.close();
		int an = 0;
		int n = s.length();
		for(int i = 0; i < a; ++i) {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		}
		if(s.charAt(a) != '-')an = 1;
		if(an != 1) {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		}
		System.out.println(ans[an]);
	}
} 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();
		String ans[] = {"Yes", "No"};
		sc.close();
		int an = 0;
		int n = s.length();
		for(int i = 0; i < a; ++i) {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		}
		if(s.charAt(a) != '-')an = 1;
		if(an != 1) {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		}
		System.out.println(ans[an]);
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt();
		String s = sc.next();
		String ans[] = {"Yes", "No"};
		sc.close();
		int an = 0;
		int n = s.length();
		for(int i = 0; i < a; ++i) {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		}
		if(s.charAt(a) != '-')an = 1;
		if(an != 1) {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		}
		System.out.println(ans[an]);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt();
		String s = sc.next();
		String ans[] = {"Yes", "No"};
		sc.close();
		int an = 0;
		int n = s.length();
		for(int i = 0; i < a; ++i) {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		}
		if(s.charAt(a) != '-')an = 1;
		if(an != 1) {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		}
		System.out.println(ans[an]);
	} 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 String ans[] = {"Yes", "No"}; ans {"Yes", "No"} "Yes" "No" sc.close() sc.close sc int an = 0; an 0 int n = s.length(); n s.length() s.length s for(int i = 0; i < a; ++i) {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		} int i = 0; int i = 0; i 0 i < a i a ++i ++i i {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		} {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		} if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			} s.charAt(i) < '0' || s.charAt(i) > '9' s.charAt(i) < '0' s.charAt(i) s.charAt s i '0' s.charAt(i) > '9' s.charAt(i) s.charAt s i '9' {
				an = 1;
				break;
			} an = 1 an 1 break; if(s.charAt(a) != '-')an = 1; s.charAt(a) != '-' s.charAt(a) s.charAt s a '-' an = 1 an 1 if(an != 1) {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		} an != 1 an 1 {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		} for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			} int i = a + 1; int i = a + 1; i a + 1 a 1 i < n i n ++i ++i i {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			} {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			} if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				} s.charAt(i) < '0' || s.charAt(i) > '9' s.charAt(i) < '0' s.charAt(i) s.charAt s i '0' s.charAt(i) > '9' s.charAt(i) s.charAt s i '9' {
					an = 1;
					break;
				} an = 1 an 1 break; System.out.println(ans[an]) System.out.println System.out System System.out ans[an] ans an 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();
		String ans[] = {"Yes", "No"};
		sc.close();
		int an = 0;
		int n = s.length();
		for(int i = 0; i < a; ++i) {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		}
		if(s.charAt(a) != '-')an = 1;
		if(an != 1) {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		}
		System.out.println(ans[an]);
	}
} 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();
		String ans[] = {"Yes", "No"};
		sc.close();
		int an = 0;
		int n = s.length();
		for(int i = 0; i < a; ++i) {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		}
		if(s.charAt(a) != '-')an = 1;
		if(an != 1) {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		}
		System.out.println(ans[an]);
	}
} 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();
		String ans[] = {"Yes", "No"};
		sc.close();
		int an = 0;
		int n = s.length();
		for(int i = 0; i < a; ++i) {
			if(s.charAt(i) < '0' || s.charAt(i) > '9') {
				an = 1;
				break;
			}
		}
		if(s.charAt(a) != '-')an = 1;
		if(an != 1) {
			for(int i = a + 1; i < n; ++i) {
				if(s.charAt(i) < '0' || s.charAt(i) > '9') {
					an = 1;
					break;
				}
			}
		}
		System.out.println(ans[an]);
	}
}
