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();
        char[] ans = S.toCharArray();
        int A1 = 0;
        int A2 = 0;
        if ('-' == S.charAt(A)) {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } else {
            A1 = 1;
            A2 = 1;
        }
        if (A1 == 0 && A2 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} 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();
        char[] ans = S.toCharArray();
        int A1 = 0;
        int A2 = 0;
        if ('-' == S.charAt(A)) {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } else {
            A1 = 1;
            A2 = 1;
        }
        if (A1 == 0 && A2 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} 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();
        char[] ans = S.toCharArray();
        int A1 = 0;
        int A2 = 0;
        if ('-' == S.charAt(A)) {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } else {
            A1 = 1;
            A2 = 1;
        }
        if (A1 == 0 && A2 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        String S = sc.next();
        char[] ans = S.toCharArray();
        int A1 = 0;
        int A2 = 0;
        if ('-' == S.charAt(A)) {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } else {
            A1 = 1;
            A2 = 1;
        }
        if (A1 == 0 && A2 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } 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 char[] ans = S.toCharArray(); ans S.toCharArray() S.toCharArray S int A1 = 0; A1 0 int A2 = 0; A2 0 if ('-' == S.charAt(A)) {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } else {
            A1 = 1;
            A2 = 1;
        } '-' == S.charAt(A) '-' S.charAt(A) S.charAt S A {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            } int i = 0; int i = 0; i 0 A > i A i i++ i++ i {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            } {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            } if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                } ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9' ans[i] == '8' ans[i] == '7' ans[i] == '6' ans[i] == '5' ans[i] == '4' ans[i] == '3' ans[i] == '2' ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9' ans[i] == '0' ans[i] ans i '0' ans[i] == '1' ans[i] ans i '1' ans[i] == '2' ans[i] ans i '2' ans[i] == '3' ans[i] ans i '3' ans[i] == '4' ans[i] ans i '4' ans[i] == '5' ans[i] ans i '5' ans[i] == '6' ans[i] ans i '6' ans[i] == '7' ans[i] ans i '7' ans[i] == '8' ans[i] ans i '8' ans[i] == '9' ans[i] ans i '9' {

                } {
                    A1 = 1;
                    break;
                } A1 = 1 A1 1 break; for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            } int j = 0; int j = 0; j 0 B > j B j j++ j++ j {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            } {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            } if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                } ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9' ans[j + A + 1] == '8' ans[j + A + 1] == '7' ans[j + A + 1] == '6' ans[j + A + 1] == '5' ans[j + A + 1] == '4' ans[j + A + 1] == '3' ans[j + A + 1] == '2' ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9' ans[A + 1 + j] == '0' ans[A + 1 + j] ans A + 1 + j A + 1 + j A 1 j '0' ans[j + A + 1] == '1' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '1' ans[j + A + 1] == '2' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '2' ans[j + A + 1] == '3' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '3' ans[j + A + 1] == '4' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '4' ans[j + A + 1] == '5' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '5' ans[j + A + 1] == '6' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '6' ans[j + A + 1] == '7' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '7' ans[j + A + 1] == '8' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '8' ans[j + A + 1] == '9' ans[j + A + 1] ans j + A + 1 j + A + 1 j A 1 '9' {

                } {
                    A2 = 1;
                    break;
                } A2 = 1 A2 1 break; {
            A1 = 1;
            A2 = 1;
        } A1 = 1 A1 1 A2 = 1 A2 1 if (A1 == 0 && A2 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } A1 == 0 && A2 == 0 A1 == 0 A1 0 A2 == 0 A2 0 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" 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();
        char[] ans = S.toCharArray();
        int A1 = 0;
        int A2 = 0;
        if ('-' == S.charAt(A)) {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } else {
            A1 = 1;
            A2 = 1;
        }
        if (A1 == 0 && A2 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} 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();
        char[] ans = S.toCharArray();
        int A1 = 0;
        int A2 = 0;
        if ('-' == S.charAt(A)) {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } else {
            A1 = 1;
            A2 = 1;
        }
        if (A1 == 0 && A2 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
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();
        char[] ans = S.toCharArray();
        int A1 = 0;
        int A2 = 0;
        if ('-' == S.charAt(A)) {
            for (int i = 0; A > i; i++) {
                if (ans[i] == '0' || ans[i] == '1' || ans[i] == '2' || ans[i] == '3' || ans[i] == '4' || ans[i] == '5' || ans[i] == '6' || ans[i] == '7' || ans[i] == '8' || ans[i] == '9') {

                } else {
                    A1 = 1;
                    break;
                }
            }
            for (int j = 0; B > j; j++) {
                if (ans[A + 1 + j] == '0' || ans[j + A + 1] == '1' || ans[j + A + 1] == '2' || ans[j + A + 1] == '3' || ans[j + A + 1] == '4' || ans[j + A + 1] == '5' || ans[j + A + 1] == '6' || ans[j + A + 1] == '7' || ans[j + A + 1] == '8' || ans[j + A + 1] == '9') {

                } else {
                    A2 = 1;
                    break;
                }
            }
        } else {
            A1 = 1;
            A2 = 1;
        }
        if (A1 == 0 && A2 == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
