
import java.util.*;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;

public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int A = Input.nextInt();
        int B = Input.nextInt();

        int C = A + B + 1;

        int V = 0;
        int L = 0;
        boolean T = false;

        String S = Input.next();

        if (S.length() != C) {
            System.out.println("No");
        } else {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        }

    }
} import java.util.*; util.* java import static java.util.Map.Entry.comparingByValue; import static java.util.Map.Entry.comparingByValue; import static java.util.Map.Entry.comparingByValue; import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap; public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int A = Input.nextInt();
        int B = Input.nextInt();

        int C = A + B + 1;

        int V = 0;
        int L = 0;
        boolean T = false;

        String S = Input.next();

        if (S.length() != C) {
            System.out.println("No");
        } else {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        }

    }
} Main public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int A = Input.nextInt();
        int B = Input.nextInt();

        int C = A + B + 1;

        int V = 0;
        int L = 0;
        boolean T = false;

        String S = Input.next();

        if (S.length() != C) {
            System.out.println("No");
        } else {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        }

    } main {

        Scanner Input = new Scanner(System.in);
        int A = Input.nextInt();
        int B = Input.nextInt();

        int C = A + B + 1;

        int V = 0;
        int L = 0;
        boolean T = false;

        String S = Input.next();

        if (S.length() != C) {
            System.out.println("No");
        } else {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        }

    } Scanner Input = new Scanner(System.in); Input new Scanner(System.in) int A = Input.nextInt(); A Input.nextInt() Input.nextInt Input int B = Input.nextInt(); B Input.nextInt() Input.nextInt Input int C = A + B + 1; C A + B + 1 A + B + 1 A B 1 int V = 0; V 0 int L = 0; L 0 boolean T = false; T false String S = Input.next(); S Input.next() Input.next Input if (S.length() != C) {
            System.out.println("No");
        } else {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        } S.length() != C S.length() S.length S C {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        } if (S.charAt(A) == '-') {
                T = true;
            } S.charAt(A) == '-' S.charAt(A) S.charAt S A '-' {
                T = true;
            } T = true T true for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            } int I = 0; int I = 0; I 0 I < S.length() I S.length() S.length S I++ I++ I {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            } {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            } if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                } S.charAt(I) == '-' S.charAt(I) S.charAt S I '-' {
                    L++;
                } L++ L {
                    V++;
                } V++ V if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            } L == 1 && T L == 1 L 1 T {
                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 Input = new Scanner(System.in);
        int A = Input.nextInt();
        int B = Input.nextInt();

        int C = A + B + 1;

        int V = 0;
        int L = 0;
        boolean T = false;

        String S = Input.next();

        if (S.length() != C) {
            System.out.println("No");
        } else {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        }

    }
} public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int A = Input.nextInt();
        int B = Input.nextInt();

        int C = A + B + 1;

        int V = 0;
        int L = 0;
        boolean T = false;

        String S = Input.next();

        if (S.length() != C) {
            System.out.println("No");
        } else {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        }

    }
} Main

import java.util.*;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;

public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int A = Input.nextInt();
        int B = Input.nextInt();

        int C = A + B + 1;

        int V = 0;
        int L = 0;
        boolean T = false;

        String S = Input.next();

        if (S.length() != C) {
            System.out.println("No");
        } else {
            if (S.charAt(A) == '-') {
                T = true;
            }
            for (int I = 0; I < S.length(); I++) {
                if (S.charAt(I) == '-') {
                    L++;
                } else {
                    V++;
                }
            }
            if (L == 1 && T) {
                System.out.println("Yes");

            } else {
                System.out.println("No");
            }
        }

    }
}
