import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int a = Integer.parseInt(in.next());
            int b = Integer.parseInt(in.next());
            String S = in.next();

            if (S.charAt(a) != '-') {
                out.println("No");
                return;
            }

            for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }

            for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int a = Integer.parseInt(in.next());
            int b = Integer.parseInt(in.next());
            String S = in.next();

            if (S.charAt(a) != '-') {
                out.println("No");
                return;
            }

            for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }

            for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) B solver = new B(); solver new B() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int a = Integer.parseInt(in.next());
            int b = Integer.parseInt(in.next());
            String S = in.next();

            if (S.charAt(a) != '-') {
                out.println("No");
                return;
            }

            for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }

            for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

    } B public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int a = Integer.parseInt(in.next());
            int b = Integer.parseInt(in.next());
            String S = in.next();

            if (S.charAt(a) != '-') {
                out.println("No");
                return;
            }

            for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }

            for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        } solve {
            // 入力
            int a = Integer.parseInt(in.next());
            int b = Integer.parseInt(in.next());
            String S = in.next();

            if (S.charAt(a) != '-') {
                out.println("No");
                return;
            }

            for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }

            for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        } int a = Integer.parseInt(in.next()); a Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in int b = Integer.parseInt(in.next()); b Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in String S = in.next(); S in.next() in.next in if (S.charAt(a) != '-') {
                out.println("No");
                return;
            } S.charAt(a) != '-' S.charAt(a) S.charAt S a '-' {
                out.println("No");
                return;
            } out.println("No") out.println out "No" return; for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            } int i = 0; int i = 0; i 0 i <= a - 1 i a - 1 a 1 i++ i++ i {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            } {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            } if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                } '0' > S.charAt(i) || S.charAt(i) > '9' '0' > S.charAt(i) '0' S.charAt(i) S.charAt S i S.charAt(i) > '9' S.charAt(i) S.charAt S i '9' {
                    out.println("No");
                    return;
                } out.println("No") out.println out "No" return; for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            } int i = a + 1; int i = a + 1; i a + 1 a 1 i <= a + b i a + b a b i++ i++ i {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            } {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            } if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                } '0' > S.charAt(i) || S.charAt(i) > '9' '0' > S.charAt(i) '0' S.charAt(i) S.charAt S i S.charAt(i) > '9' S.charAt(i) S.charAt S i '9' {
                    out.println("No");
                    return;
                } out.println("No") out.println out "No" return; out.println("Yes") out.println out "Yes" int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int a = Integer.parseInt(in.next());
            int b = Integer.parseInt(in.next());
            String S = in.next();

            if (S.charAt(a) != '-') {
                out.println("No");
                return;
            }

            for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }

            for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int a = Integer.parseInt(in.next());
            int b = Integer.parseInt(in.next());
            String S = in.next();

            if (S.charAt(a) != '-') {
                out.println("No");
                return;
            }

            for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }

            for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int a = Integer.parseInt(in.next());
            int b = Integer.parseInt(in.next());
            String S = in.next();

            if (S.charAt(a) != '-') {
                out.println("No");
                return;
            }

            for (int i = 0; i <= a - 1; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }

            for (int i = a + 1; i <= a + b; i++) {
                if ('0' > S.charAt(i) || S.charAt(i) > '9') {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

    }
}

