import java.io.File;
import java.io.IOException;
import java.util.*;
 
public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		String S = sc.next();
		boolean ans = true;
		
		for(int i = 0; i < S.length(); i++){
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		}
		
		System.out.println(ans?"Yes":"No");
	}
} import java.io.File; File java.io import java.io.IOException; IOException java.io import java.util.*; util.* java public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		String S = sc.next();
		boolean ans = true;
		
		for(int i = 0; i < S.length(); i++){
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		}
		
		System.out.println(ans?"Yes":"No");
	}
} Main public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		String S = sc.next();
		boolean ans = true;
		
		for(int i = 0; i < S.length(); i++){
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		}
		
		System.out.println(ans?"Yes":"No");
	} main {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		String S = sc.next();
		boolean ans = true;
		
		for(int i = 0; i < S.length(); i++){
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		}
		
		System.out.println(ans?"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 boolean ans = true; ans true for(int i = 0; i < S.length(); i++){
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		} int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		} {
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		} char c = S.charAt(i); c S.charAt(i) S.charAt S i if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false; i == A && c != '-' i == A i A c != '-' c '-' ans = false ans false if(i != A && c < '0' || c > '9') ans = false; i != A && c < '0' || c > '9' i != A && c < '0' i != A i A c < '0' c '0' c > '9' c '9' ans = false ans false System.out.println(ans?"Yes":"No") System.out.println System.out System System.out ans?"Yes":"No" ans "Yes" "No" String[] args args public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		String S = sc.next();
		boolean ans = true;
		
		for(int i = 0; i < S.length(); i++){
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		}
		
		System.out.println(ans?"Yes":"No");
	}
} public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		String S = sc.next();
		boolean ans = true;
		
		for(int i = 0; i < S.length(); i++){
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		}
		
		System.out.println(ans?"Yes":"No");
	}
} Main
import java.io.File;
import java.io.IOException;
import java.util.*;
 
public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		String S = sc.next();
		boolean ans = true;
		
		for(int i = 0; i < S.length(); i++){
			char c = S.charAt(i);
			if(i == A && c != '-') ans = false;
			else if(i != A && c < '0' || c > '9') ans = false;
		}
		
		System.out.println(ans?"Yes":"No");
	}
}