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();
		int flag = 0;
		String s = sc.next();

		for(int i=0;i<a;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(!s.substring(a,a+1).equals("-")) {
			flag = 1;
		}
		for(int i=a+1;i<a+b+1;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(flag == 1) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

	public static int res(int n) {
		if(n==1) {
			return 1;
		}

		return n+res(n-1);
	}
}

 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();
		int flag = 0;
		String s = sc.next();

		for(int i=0;i<a;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(!s.substring(a,a+1).equals("-")) {
			flag = 1;
		}
		for(int i=a+1;i<a+b+1;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(flag == 1) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

	public static int res(int n) {
		if(n==1) {
			return 1;
		}

		return n+res(n-1);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int flag = 0;
		String s = sc.next();

		for(int i=0;i<a;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(!s.substring(a,a+1).equals("-")) {
			flag = 1;
		}
		for(int i=a+1;i<a+b+1;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(flag == 1) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int flag = 0;
		String s = sc.next();

		for(int i=0;i<a;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(!s.substring(a,a+1).equals("-")) {
			flag = 1;
		}
		for(int i=a+1;i<a+b+1;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(flag == 1) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	} 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 int flag = 0; flag 0 String s = sc.next(); s sc.next() sc.next sc for(int i=0;i<a;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		} {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		} if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			} s.substring(i,i+1).equals("-") s.substring(i,i+1).equals s.substring(i,i+1) s.substring s i i+1 i 1 "-" {
				flag = 1;
			} flag = 1 flag 1 if(!s.substring(a,a+1).equals("-")) {
			flag = 1;
		} !s.substring(a,a+1).equals("-") s.substring(a,a+1).equals("-") s.substring(a,a+1).equals s.substring(a,a+1) s.substring s a a+1 a 1 "-" {
			flag = 1;
		} flag = 1 flag 1 for(int i=a+1;i<a+b+1;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		} int i=a+1; int i=a+1; i a+1 a 1 i<a+b+1 i a+b+1 a+b+1 a b 1 i++ i++ i {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		} {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		} if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			} s.substring(i,i+1).equals("-") s.substring(i,i+1).equals s.substring(i,i+1) s.substring s i i+1 i 1 "-" {
				flag = 1;
			} flag = 1 flag 1 if(flag == 1) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		} flag == 1 flag 1 {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public static int res(int n) {
		if(n==1) {
			return 1;
		}

		return n+res(n-1);
	} res {
		if(n==1) {
			return 1;
		}

		return n+res(n-1);
	} if(n==1) {
			return 1;
		} n==1 n 1 {
			return 1;
		} return 1; 1 return n+res(n-1); n+res(n-1) n res(n-1) res n-1 n 1 int n n public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int flag = 0;
		String s = sc.next();

		for(int i=0;i<a;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(!s.substring(a,a+1).equals("-")) {
			flag = 1;
		}
		for(int i=a+1;i<a+b+1;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(flag == 1) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

	public static int res(int n) {
		if(n==1) {
			return 1;
		}

		return n+res(n-1);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int flag = 0;
		String s = sc.next();

		for(int i=0;i<a;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(!s.substring(a,a+1).equals("-")) {
			flag = 1;
		}
		for(int i=a+1;i<a+b+1;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(flag == 1) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

	public static int res(int n) {
		if(n==1) {
			return 1;
		}

		return n+res(n-1);
	}
} 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();
		int flag = 0;
		String s = sc.next();

		for(int i=0;i<a;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(!s.substring(a,a+1).equals("-")) {
			flag = 1;
		}
		for(int i=a+1;i<a+b+1;i++) {
			if(s.substring(i,i+1).equals("-")) {
				flag = 1;
			}
		}
		if(flag == 1) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

	public static int res(int n) {
		if(n==1) {
			return 1;
		}

		return n+res(n-1);
	}
}


