import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        
        String[] l = scan.nextLine().split(" ");
        int a = Integer.parseInt(l[0]);
        int b = Integer.parseInt(l[1]);
        String s = scan.nextLine();

        if(s.length() != (a+b+1)){
            System.out.println("No");
            scan.close();
            return;
        }

        String res = "Yes";
        for(int i=0; i<s.length(); i++){
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        }
        
        System.out.println(res);
        scan.close();
        
    }
    private static boolean isNum(String str){
        try{
            Integer.parseInt(str);
            return true;
        }catch(Exception e){
            return false;
        }
    }
} import java.util.Scanner; Scanner java.util public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        
        String[] l = scan.nextLine().split(" ");
        int a = Integer.parseInt(l[0]);
        int b = Integer.parseInt(l[1]);
        String s = scan.nextLine();

        if(s.length() != (a+b+1)){
            System.out.println("No");
            scan.close();
            return;
        }

        String res = "Yes";
        for(int i=0; i<s.length(); i++){
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        }
        
        System.out.println(res);
        scan.close();
        
    }
    private static boolean isNum(String str){
        try{
            Integer.parseInt(str);
            return true;
        }catch(Exception e){
            return false;
        }
    }
} Main public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        
        String[] l = scan.nextLine().split(" ");
        int a = Integer.parseInt(l[0]);
        int b = Integer.parseInt(l[1]);
        String s = scan.nextLine();

        if(s.length() != (a+b+1)){
            System.out.println("No");
            scan.close();
            return;
        }

        String res = "Yes";
        for(int i=0; i<s.length(); i++){
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        }
        
        System.out.println(res);
        scan.close();
        
    } main {
        
        Scanner scan = new Scanner(System.in);
        
        String[] l = scan.nextLine().split(" ");
        int a = Integer.parseInt(l[0]);
        int b = Integer.parseInt(l[1]);
        String s = scan.nextLine();

        if(s.length() != (a+b+1)){
            System.out.println("No");
            scan.close();
            return;
        }

        String res = "Yes";
        for(int i=0; i<s.length(); i++){
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        }
        
        System.out.println(res);
        scan.close();
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String[] l = scan.nextLine().split(" "); l scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " int a = Integer.parseInt(l[0]); a Integer.parseInt(l[0]) Integer.parseInt Integer l[0] l 0 int b = Integer.parseInt(l[1]); b Integer.parseInt(l[1]) Integer.parseInt Integer l[1] l 1 String s = scan.nextLine(); s scan.nextLine() scan.nextLine scan if(s.length() != (a+b+1)){
            System.out.println("No");
            scan.close();
            return;
        } s.length() != (a+b+1) s.length() s.length s (a+b+1) a+b+1 a b 1 {
            System.out.println("No");
            scan.close();
            return;
        } System.out.println("No") System.out.println System.out System System.out "No" scan.close() scan.close scan return; String res = "Yes"; res "Yes" for(int i=0; i<s.length(); i++){
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        } {
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        } String str = s.substring(i, i+1); str s.substring(i, i+1) s.substring s i i+1 i 1 if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            } i==a && !str.equals("-") i==a i a !str.equals("-") str.equals("-") str.equals str "-" {
                res = "No";
                break;
            } res = "No" res "No" break; if(i!=a && !isNum(str)){
                res = "No";
                break;
            } i!=a && !isNum(str) i!=a i a !isNum(str) isNum(str) isNum str {
                res = "No";
                break;
            } res = "No" res "No" break; System.out.println(res) System.out.println System.out System System.out res scan.close() scan.close scan String[] args args private static boolean isNum(String str){
        try{
            Integer.parseInt(str);
            return true;
        }catch(Exception e){
            return false;
        }
    } isNum {
        try{
            Integer.parseInt(str);
            return true;
        }catch(Exception e){
            return false;
        }
    } try{
            Integer.parseInt(str);
            return true;
        }catch(Exception e){
            return false;
        } catch(Exception e){
            return false;
        } Exception e {
            return false;
        } return false; false {
            Integer.parseInt(str);
            return true;
        } Integer.parseInt(str) Integer.parseInt Integer str return true; true String str str public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        
        String[] l = scan.nextLine().split(" ");
        int a = Integer.parseInt(l[0]);
        int b = Integer.parseInt(l[1]);
        String s = scan.nextLine();

        if(s.length() != (a+b+1)){
            System.out.println("No");
            scan.close();
            return;
        }

        String res = "Yes";
        for(int i=0; i<s.length(); i++){
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        }
        
        System.out.println(res);
        scan.close();
        
    }
    private static boolean isNum(String str){
        try{
            Integer.parseInt(str);
            return true;
        }catch(Exception e){
            return false;
        }
    }
} public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        
        String[] l = scan.nextLine().split(" ");
        int a = Integer.parseInt(l[0]);
        int b = Integer.parseInt(l[1]);
        String s = scan.nextLine();

        if(s.length() != (a+b+1)){
            System.out.println("No");
            scan.close();
            return;
        }

        String res = "Yes";
        for(int i=0; i<s.length(); i++){
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        }
        
        System.out.println(res);
        scan.close();
        
    }
    private static boolean isNum(String str){
        try{
            Integer.parseInt(str);
            return true;
        }catch(Exception e){
            return false;
        }
    }
} Main
import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        
        String[] l = scan.nextLine().split(" ");
        int a = Integer.parseInt(l[0]);
        int b = Integer.parseInt(l[1]);
        String s = scan.nextLine();

        if(s.length() != (a+b+1)){
            System.out.println("No");
            scan.close();
            return;
        }

        String res = "Yes";
        for(int i=0; i<s.length(); i++){
            String str = s.substring(i, i+1);
            if(i==a && !str.equals("-")){
                res = "No";
                break;
            }else if(i!=a && !isNum(str)){
                res = "No";
                break;
            }
        }
        
        System.out.println(res);
        scan.close();
        
    }
    private static boolean isNum(String str){
        try{
            Integer.parseInt(str);
            return true;
        }catch(Exception e){
            return false;
        }
    }
}