import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean j = true;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		String[] strArray = s.split("");
		if(strArray.length != a+b+1) j = false;
		if(strArray[a].equals("-")) {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		}
		else j = false;
		if(j) System.out.println("Yes");
		else if(!j) System.out.println("No");
		sc.close();	
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean j = true;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		String[] strArray = s.split("");
		if(strArray.length != a+b+1) j = false;
		if(strArray[a].equals("-")) {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		}
		else j = false;
		if(j) System.out.println("Yes");
		else if(!j) System.out.println("No");
		sc.close();	
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean j = true;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		String[] strArray = s.split("");
		if(strArray.length != a+b+1) j = false;
		if(strArray[a].equals("-")) {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		}
		else j = false;
		if(j) System.out.println("Yes");
		else if(!j) System.out.println("No");
		sc.close();	
	} main {
		// TODO Auto-generated method stub
		boolean j = true;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		String[] strArray = s.split("");
		if(strArray.length != a+b+1) j = false;
		if(strArray[a].equals("-")) {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		}
		else j = false;
		if(j) System.out.println("Yes");
		else if(!j) System.out.println("No");
		sc.close();	
	} boolean j = true; j true 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[] strArray = s.split(""); strArray s.split("") s.split s "" if(strArray.length != a+b+1) j = false; strArray.length != a+b+1 strArray.length strArray strArray.length a+b+1 a+b+1 a b 1 j = false j false if(strArray[a].equals("-")) {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		}
		else j = false; strArray[a].equals("-") strArray[a].equals strArray[a] strArray a "-" {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		} for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			} int i = 0; int i = 0; i 0 i < strArray.length i strArray.length strArray strArray.length i++ i++ i {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			} {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			} if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				} i != a i a {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				} if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false; !(strArray[i].equals("-")) (strArray[i].equals("-")) strArray[i].equals strArray[i] strArray i "-" {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					} int x = Integer.parseInt(strArray[i]); x Integer.parseInt(strArray[i]) Integer.parseInt Integer strArray[i] strArray i if(x >= 10 && x < 0) j = false; x >= 10 && x < 0 x >= 10 x 10 x < 0 x 0 j = false j false j = false j false j = false j false if(j) System.out.println("Yes");
		else if(!j) System.out.println("No"); j System.out.println("Yes") System.out.println System.out System System.out "Yes" if(!j) System.out.println("No"); !j j System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean j = true;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		String[] strArray = s.split("");
		if(strArray.length != a+b+1) j = false;
		if(strArray[a].equals("-")) {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		}
		else j = false;
		if(j) System.out.println("Yes");
		else if(!j) System.out.println("No");
		sc.close();	
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean j = true;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		String[] strArray = s.split("");
		if(strArray.length != a+b+1) j = false;
		if(strArray[a].equals("-")) {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		}
		else j = false;
		if(j) System.out.println("Yes");
		else if(!j) System.out.println("No");
		sc.close();	
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean j = true;
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next();
		String[] strArray = s.split("");
		if(strArray.length != a+b+1) j = false;
		if(strArray[a].equals("-")) {
			for(int i = 0;i < strArray.length;i++) {
				if(i != a) {
					if(!(strArray[i].equals("-"))) {
						int x = Integer.parseInt(strArray[i]);
						if(x >= 10 && x < 0) j = false;
					}
					else j = false;
				}
			}
		}
		else j = false;
		if(j) System.out.println("Yes");
		else if(!j) System.out.println("No");
		sc.close();	
	}
}
