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();
		sc.close();
		char c[] = S.toCharArray();
		if (c[A] == '-') {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	}
} 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();
		sc.close();
		char c[] = S.toCharArray();
		if (c[A] == '-') {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt(), B = sc.nextInt();
		String S = sc.next();
		sc.close();
		char c[] = S.toCharArray();
		if (c[A] == '-') {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt(), B = sc.nextInt();
		String S = sc.next();
		sc.close();
		char c[] = S.toCharArray();
		if (c[A] == '-') {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	} 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 sc.close() sc.close sc char c[] = S.toCharArray(); c S.toCharArray() S.toCharArray S if (c[A] == '-') {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		} c[A] == '-' c[A] c A '-' {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		} int sum = 0; sum 0 for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			} int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			} {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			} if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				} '0' <= c[i] && c[i] <= '9' '0' <= c[i] '0' c[i] c i c[i] <= '9' c[i] c i '9' {
					sum++;
				} sum++ sum if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			} sum == S.length() - 1 sum S.length() - 1 S.length() S.length S 1 {
				System.out.println("Yes");
				return;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" 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();
		sc.close();
		char c[] = S.toCharArray();
		if (c[A] == '-') {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	}
} 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();
		sc.close();
		char c[] = S.toCharArray();
		if (c[A] == '-') {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	}
} 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();
		sc.close();
		char c[] = S.toCharArray();
		if (c[A] == '-') {
			int sum = 0;
			for (int i = 0; i < S.length(); i++) {
				if ('0' <= c[i] && c[i] <= '9') {
					sum++;
				}
			}
			if (sum == S.length() - 1) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	}
}
