import java.util.*;

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();
        String ans = "Yes";
        if(S.charAt(A)!='-') ans = "No";
        for(int i=1;i<=A;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }
        for(int i=A+2;i<=A+B+1;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java 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();
        String ans = "Yes";
        if(S.charAt(A)!='-') ans = "No";
        for(int i=1;i<=A;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }
        for(int i=A+2;i<=A+B+1;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }

        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();
        String ans = "Yes";
        if(S.charAt(A)!='-') ans = "No";
        for(int i=1;i<=A;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }
        for(int i=A+2;i<=A+B+1;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        String S = sc.next();
        String ans = "Yes";
        if(S.charAt(A)!='-') ans = "No";
        for(int i=1;i<=A;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }
        for(int i=A+2;i<=A+B+1;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }

        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(); S sc.next() sc.next sc String ans = "Yes"; ans "Yes" if(S.charAt(A)!='-') ans = "No"; S.charAt(A)!='-' S.charAt(A) S.charAt S A '-' ans = "No" ans "No" for(int i=1;i<=A;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        } int i=1; int i=1; i 1 i<=A i A i++ i++ i {
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        } {
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        } if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No"; S.charAt(i-1)<'0'||S.charAt(i-1)>'9' S.charAt(i-1)<'0' S.charAt(i-1) S.charAt S i-1 i 1 '0' S.charAt(i-1)>'9' S.charAt(i-1) S.charAt S i-1 i 1 '9' ans = "No" ans "No" for(int i=A+2;i<=A+B+1;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        } int i=A+2; int i=A+2; i A+2 A 2 i<=A+B+1 i A+B+1 A+B+1 A B 1 i++ i++ i {
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        } {
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        } if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No"; S.charAt(i-1)<'0'||S.charAt(i-1)>'9' S.charAt(i-1)<'0' S.charAt(i-1) S.charAt S i-1 i 1 '0' S.charAt(i-1)>'9' S.charAt(i-1) S.charAt S i-1 i 1 '9' ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

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();
        String ans = "Yes";
        if(S.charAt(A)!='-') ans = "No";
        for(int i=1;i<=A;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }
        for(int i=A+2;i<=A+B+1;i++){
            if(S.charAt(i-1)<'0'||S.charAt(i-1)>'9') ans = "No";
        }

        System.out.println(ans);
    }
}
