
import java.util.*;
class Main
{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        System.out.println(getData(in.nextInt(), in.nextInt(), in.next()));
    }

    public static String getData(int a, int b, String s){
        for (int i = 0; i < s.length(); i++){
            if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            
        }
        return "Yes";
    }
} import java.util.*; util.* java class Main
{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        System.out.println(getData(in.nextInt(), in.nextInt(), in.next()));
    }

    public static String getData(int a, int b, String s){
        for (int i = 0; i < s.length(); i++){
            if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            
        }
        return "Yes";
    }
} Main public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        System.out.println(getData(in.nextInt(), in.nextInt(), in.next()));
    } main {
        Scanner in = new Scanner(System.in);
        System.out.println(getData(in.nextInt(), in.nextInt(), in.next()));
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) System.out.println(getData(in.nextInt(), in.nextInt(), in.next())) System.out.println System.out System System.out getData(in.nextInt(), in.nextInt(), in.next()) getData in.nextInt() in.nextInt in in.nextInt() in.nextInt in in.next() in.next in String args[] args public static String getData(int a, int b, String s){
        for (int i = 0; i < s.length(); i++){
            if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            
        }
        return "Yes";
    } getData {
        for (int i = 0; i < s.length(); i++){
            if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            
        }
        return "Yes";
    } for (int i = 0; i < s.length(); i++){
            if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            
        } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
            if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            
        } {
            if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            
        } if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            } i < a i a {
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            } if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No"; s.charAt(i) < 48 || s.charAt(i) > 57 s.charAt(i) < 48 s.charAt(i) s.charAt s i 48 s.charAt(i) > 57 s.charAt(i) s.charAt s i 57 return "No"; "No" if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            } i == a i a {
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            } if (s.charAt(i) != '-') return "No"; s.charAt(i) != '-' s.charAt(i) s.charAt s i '-' return "No"; "No" {
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            } if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No"; s.charAt(i) < 48 || s.charAt(i) > 57 s.charAt(i) < 48 s.charAt(i) s.charAt s i 48 s.charAt(i) > 57 s.charAt(i) s.charAt s i 57 return "No"; "No" return "Yes"; "Yes" int a a int b b String s s

import java.util.*;
class Main
{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        System.out.println(getData(in.nextInt(), in.nextInt(), in.next()));
    }

    public static String getData(int a, int b, String s){
        for (int i = 0; i < s.length(); i++){
            if (i < a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            else if (i == a){
                //System.out.println(s.charAt(i));
                if (s.charAt(i) != '-') return "No";
            }
            else{
                //System.out.println(s.charAt(i));
                if (s.charAt(i) < 48 || s.charAt(i) > 57) return "No";
            }
            
        }
        return "Yes";
    }
}
