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