import java.util.Arrays;
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();
        sc.close();
        
        for(int i=0; i<s.length();i++){
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        }

        System.out.print("Yes");
	}
} import java.util.Arrays; Arrays java.util 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();
        sc.close();
        
        for(int i=0; i<s.length();i++){
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        }

        System.out.print("Yes");
	}
} 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();
        sc.close();
        
        for(int i=0; i<s.length();i++){
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        }

        System.out.print("Yes");
	} main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String s = sc.next();
        sc.close();
        
        for(int i=0; i<s.length();i++){
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        }

        System.out.print("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 String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc for(int i=0; i<s.length();i++){
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        } {
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        } if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            } (i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') (i < a || i > a) i < a i a i > a i a (s.charAt(i) < '0' || s.charAt(i) > '9') s.charAt(i) < '0' s.charAt(i) s.charAt s i '0' s.charAt(i) > '9' s.charAt(i) s.charAt s i '9' {
                System.out.print("No");
                return;
            } System.out.print("No") System.out.print System.out System System.out "No" return; if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            } i == a && s.charAt(i) != '-' i == a i a s.charAt(i) != '-' s.charAt(i) s.charAt s i '-' {
                System.out.print("No");
                return;
            } System.out.print("No") System.out.print System.out System System.out "No" return; System.out.print("Yes") System.out.print System.out System System.out "Yes" 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();
        sc.close();
        
        for(int i=0; i<s.length();i++){
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        }

        System.out.print("Yes");
	}
} 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();
        sc.close();
        
        for(int i=0; i<s.length();i++){
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        }

        System.out.print("Yes");
	}
} Main
import java.util.Arrays;
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();
        sc.close();
        
        for(int i=0; i<s.length();i++){
            if((i < a || i > a) && (s.charAt(i) < '0' || s.charAt(i) > '9') ){
                System.out.print("No");
                return;
            }
            if(i == a && s.charAt(i) != '-'){
                System.out.print("No");
                return;
            }
        }

        System.out.print("Yes");
	}
}