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();
		if(s.charAt(A)!='-') {
			System.out.println("No");
			return ;
		}
		for (int i=0;i<s.length();i++) {
			if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		}
		System.out.println("Yes");
		return ;
	}
} 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();
		if(s.charAt(A)!='-') {
			System.out.println("No");
			return ;
		}
		for (int i=0;i<s.length();i++) {
			if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		}
		System.out.println("Yes");
		return ;
	}
} 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();
		if(s.charAt(A)!='-') {
			System.out.println("No");
			return ;
		}
		for (int i=0;i<s.length();i++) {
			if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		}
		System.out.println("Yes");
		return ;
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		String s = sc.next();
		if(s.charAt(A)!='-') {
			System.out.println("No");
			return ;
		}
		for (int i=0;i<s.length();i++) {
			if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		}
		System.out.println("Yes");
		return ;
	} 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 if(s.charAt(A)!='-') {
			System.out.println("No");
			return ;
		} s.charAt(A)!='-' s.charAt(A) s.charAt s A '-' {
			System.out.println("No");
			return ;
		} System.out.println("No") System.out.println System.out System System.out "No" return ; for (int i=0;i<s.length();i++) {
			if (i!=A) {
				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) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		} {
			if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		} if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			} i!=A i A {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			} 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("Yes") System.out.println System.out System System.out "Yes" return ; 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();
		if(s.charAt(A)!='-') {
			System.out.println("No");
			return ;
		}
		for (int i=0;i<s.length();i++) {
			if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		}
		System.out.println("Yes");
		return ;
	}
} 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();
		if(s.charAt(A)!='-') {
			System.out.println("No");
			return ;
		}
		for (int i=0;i<s.length();i++) {
			if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		}
		System.out.println("Yes");
		return ;
	}
} 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();
		if(s.charAt(A)!='-') {
			System.out.println("No");
			return ;
		}
		for (int i=0;i<s.length();i++) {
			if (i!=A) {
				if (s.charAt(i)<'0'||s.charAt(i)>'9') {
					System.out.println("No");
					return ;
				}
			}
		}
		System.out.println("Yes");
		return ;
	}
}