import 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().split("");
        String ans = "Yes";
        for(int i = 0; i < s.length; i++) {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        }
      
		// 出力
		System.out.println(ans);
	}
} import java.util.*; util.* java 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().split("");
        String ans = "Yes";
        for(int i = 0; i < s.length; i++) {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        }
      
		// 出力
		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().split("");
        String ans = "Yes";
        for(int i = 0; i < s.length; i++) {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        }
      
		// 出力
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();

		// 文字列の入力
		String[] s = sc.next().split("");
        String ans = "Yes";
        for(int i = 0; i < s.length; i++) {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        }
      
		// 出力
		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().split(""); s sc.next().split("") sc.next().split sc.next() sc.next sc "" String ans = "Yes"; ans "Yes" for(int i = 0; i < s.length; i++) {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        } int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        } {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        } if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          } i == a i a {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } if (!s[a].equals("-")) {
              ans = "No";
              break;
            } !s[a].equals("-") s[a].equals("-") s[a].equals s[a] s a "-" {
              ans = "No";
              break;
            } ans = "No" ans "No" break; {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          } if (s[i].equals("-")) {
              ans = "No";
              break;
            } s[i].equals("-") s[i].equals s[i] s i "-" {
              ans = "No";
              break;
            } ans = "No" ans "No" break; 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().split("");
        String ans = "Yes";
        for(int i = 0; i < s.length; i++) {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        }
      
		// 出力
		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().split("");
        String ans = "Yes";
        for(int i = 0; i < s.length; i++) {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        }
      
		// 出力
		System.out.println(ans);
	}
} Main
import 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().split("");
        String ans = "Yes";
        for(int i = 0; i < s.length; i++) {
          if (i == a) {
            if (!s[a].equals("-")) {
              ans = "No";
              break;
            }
          } else {
            if (s[i].equals("-")) {
              ans = "No";
              break;
            }
          }
        }
      
		// 出力
		System.out.println(ans);
	}
}