import java.util.Arrays;
import java.util.Scanner;

public class Main {
	char temp;
	void run() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		for(int i = 0; i < a; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		if(str.charAt(a) != '-') {
			System.out.println("No");
			return;
		}
		for(int i = a+1; i <= a+b; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		System.out.println("Yes");
		
		sc.close();
	}

	void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	}

	public static void main(String[] args) {
		new Main().run();
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	char temp;
	void run() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		for(int i = 0; i < a; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		if(str.charAt(a) != '-') {
			System.out.println("No");
			return;
		}
		for(int i = a+1; i <= a+b; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		System.out.println("Yes");
		
		sc.close();
	}

	void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	}

	public static void main(String[] args) {
		new Main().run();
	}
} Main char temp; temp void run() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		for(int i = 0; i < a; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		if(str.charAt(a) != '-') {
			System.out.println("No");
			return;
		}
		for(int i = a+1; i <= a+b; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		System.out.println("Yes");
		
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		for(int i = 0; i < a; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		if(str.charAt(a) != '-') {
			System.out.println("No");
			return;
		}
		for(int i = a+1; i <= a+b; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		System.out.println("Yes");
		
		sc.close();
	} 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 str = sc.next(); str sc.next() sc.next sc for(int i = 0; i < a; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		} {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		} temp = str.charAt(i) temp str.charAt(i) str.charAt str i if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 } '0'>temp || temp >'9' '0'>temp '0' temp temp >'9' temp '9' {
				 System.out.println("No");
				 return;
			 } System.out.println("No") System.out.println System.out System System.out "No" return; if(str.charAt(a) != '-') {
			System.out.println("No");
			return;
		} str.charAt(a) != '-' str.charAt(a) str.charAt str a '-' {
			System.out.println("No");
			return;
		} System.out.println("No") System.out.println System.out System System.out "No" return; for(int i = a+1; i <= a+b; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		} int i = a+1; int i = a+1; i a+1 a 1 i <= a+b i a+b a b i++ i++ i {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		} {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		} temp = str.charAt(i) temp str.charAt(i) str.charAt str i if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 } '0'>temp || temp >'9' '0'>temp '0' temp temp >'9' temp '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" sc.close() sc.close sc void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	} debug {
		System.out.println(Arrays.deepToString(o));
	} System.out.println(Arrays.deepToString(o)) System.out.println System.out System System.out Arrays.deepToString(o) Arrays.deepToString Arrays o Object... o o public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	char temp;
	void run() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		for(int i = 0; i < a; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		if(str.charAt(a) != '-') {
			System.out.println("No");
			return;
		}
		for(int i = a+1; i <= a+b; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		System.out.println("Yes");
		
		sc.close();
	}

	void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	}

	public static void main(String[] args) {
		new Main().run();
	}
} public class Main {
	char temp;
	void run() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		for(int i = 0; i < a; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		if(str.charAt(a) != '-') {
			System.out.println("No");
			return;
		}
		for(int i = a+1; i <= a+b; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		System.out.println("Yes");
		
		sc.close();
	}

	void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	}

	public static void main(String[] args) {
		new Main().run();
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	char temp;
	void run() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		for(int i = 0; i < a; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		if(str.charAt(a) != '-') {
			System.out.println("No");
			return;
		}
		for(int i = a+1; i <= a+b; i++) {
			 temp = str.charAt(i);
			 if('0'>temp || temp >'9') {
				 System.out.println("No");
				 return;
			 }
		}
		System.out.println("Yes");
		
		sc.close();
	}

	void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	}

	public static void main(String[] args) {
		new Main().run();
	}
}