import java.util.Scanner;

public class Main {

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		
		for (int i = 0; i < s.length(); i++) {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		}
		
		System.out.println((s.charAt(a) == '-') ? "Yes" : "No");
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		
		for (int i = 0; i < s.length(); i++) {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		}
		
		System.out.println((s.charAt(a) == '-') ? "Yes" : "No");
		
	}

} Main public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		
		for (int i = 0; i < s.length(); i++) {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		}
		
		System.out.println((s.charAt(a) == '-') ? "Yes" : "No");
		
	} main {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		
		for (int i = 0; i < s.length(); i++) {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		}
		
		System.out.println((s.charAt(a) == '-') ? "Yes" : "No");
		
	} 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 for (int i = 0; i < s.length(); i++) {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				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) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		} {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		} if (i == a) continue; i == a i a continue; if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			} 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' {
				
				System.out.println("No");
				return;
				
			} System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println((s.charAt(a) == '-') ? "Yes" : "No") System.out.println System.out System System.out (s.charAt(a) == '-') ? "Yes" : "No" (s.charAt(a) == '-') s.charAt(a) s.charAt s a '-' "Yes" "No" String... nui nui public class Main {

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		
		for (int i = 0; i < s.length(); i++) {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		}
		
		System.out.println((s.charAt(a) == '-') ? "Yes" : "No");
		
	}

} public class Main {

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		
		for (int i = 0; i < s.length(); i++) {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		}
		
		System.out.println((s.charAt(a) == '-') ? "Yes" : "No");
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String... nui) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		
		for (int i = 0; i < s.length(); i++) {
			
			if (i == a) continue;
			
			if (s.charAt(i) < '0' || s.charAt(i) > '9') {
				
				System.out.println("No");
				return;
				
			}
			
		}
		
		System.out.println((s.charAt(a) == '-') ? "Yes" : "No");
		
	}

}