import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String reg = "\\d+";

        int a = sc.nextInt();
        int b = sc.nextInt();
        String s = sc.next();
        boolean atrue = true;
        boolean btrue = true;
        boolean hi = true;

        for(int i=0; i<s.length(); i++){
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        }

        if(atrue && btrue && hi){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }

    public static void printListOneLine(List list){
        for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        }
    }

    public static void printList(List list){
        for(int i=0; i<list.size(); i++){
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        }
    }

    public static void printArray(int[] array){
        for(int i=0; i<array.length; i++){
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        }
    }

    public static int gcd(int a, int b){
        if (b == 0) return a;
        return gcd(b, a % b);
    }

    public static int lcm(int a, int b){
        return a * b / gcd(a, b);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String reg = "\\d+";

        int a = sc.nextInt();
        int b = sc.nextInt();
        String s = sc.next();
        boolean atrue = true;
        boolean btrue = true;
        boolean hi = true;

        for(int i=0; i<s.length(); i++){
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        }

        if(atrue && btrue && hi){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }

    public static void printListOneLine(List list){
        for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        }
    }

    public static void printList(List list){
        for(int i=0; i<list.size(); i++){
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        }
    }

    public static void printArray(int[] array){
        for(int i=0; i<array.length; i++){
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        }
    }

    public static int gcd(int a, int b){
        if (b == 0) return a;
        return gcd(b, a % b);
    }

    public static int lcm(int a, int b){
        return a * b / gcd(a, b);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String reg = "\\d+";

        int a = sc.nextInt();
        int b = sc.nextInt();
        String s = sc.next();
        boolean atrue = true;
        boolean btrue = true;
        boolean hi = true;

        for(int i=0; i<s.length(); i++){
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        }

        if(atrue && btrue && hi){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String reg = "\\d+";

        int a = sc.nextInt();
        int b = sc.nextInt();
        String s = sc.next();
        boolean atrue = true;
        boolean btrue = true;
        boolean hi = true;

        for(int i=0; i<s.length(); i++){
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        }

        if(atrue && btrue && hi){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String reg = "\\d+"; reg "\\d+" 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 boolean atrue = true; atrue true boolean btrue = true; btrue true boolean hi = true; hi true for(int i=0; i<s.length(); i++){
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        } {
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        } if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            } i < a && !Character.isDigit(s.charAt(i)) i < a i a !Character.isDigit(s.charAt(i)) Character.isDigit(s.charAt(i)) Character.isDigit Character s.charAt(i) s.charAt s i {
                atrue = false;
            } atrue = false atrue false if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            } i == a && !(s.charAt(i) == '-') i == a i a !(s.charAt(i) == '-') (s.charAt(i) == '-') s.charAt(i) s.charAt s i '-' {
                hi = false;
            } hi = false hi false if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            } !Character.isDigit(s.charAt(i)) && i > a !Character.isDigit(s.charAt(i)) Character.isDigit(s.charAt(i)) Character.isDigit Character s.charAt(i) s.charAt s i i > a i a {
                btrue = false;
            } btrue = false btrue false if(atrue && btrue && hi){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } atrue && btrue && hi atrue && btrue && hi atrue btrue hi {
            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 static void printListOneLine(List list){
        for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        }
    } printListOneLine {
        for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        }
    } for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        } int i=0; int i=0; i 0 i<list.size() i list.size() list.size list i++ i++ i {
            System.out.println(list.get(i));
        } {
            System.out.println(list.get(i));
        } System.out.println(list.get(i)) System.out.println System.out System System.out list.get(i) list.get list i List list list public static void printList(List list){
        for(int i=0; i<list.size(); i++){
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        }
    } printList {
        for(int i=0; i<list.size(); i++){
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        }
    } for(int i=0; i<list.size(); i++){
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        } int i=0; int i=0; i 0 i<list.size() i list.size() list.size list i++ i++ i {
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        } {
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        } if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            } i == list.size() i list.size() list.size list {
                System.out.println(list.get(i));
            } System.out.println(list.get(i)) System.out.println System.out System System.out list.get(i) list.get list i {
                System.out.print(String.format("%d ", list.get(i)));
            } System.out.print(String.format("%d ", list.get(i))) System.out.print System.out System System.out String.format("%d ", list.get(i)) String.format String "%d " list.get(i) list.get list i List list list public static void printArray(int[] array){
        for(int i=0; i<array.length; i++){
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        }
    } printArray {
        for(int i=0; i<array.length; i++){
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        }
    } for(int i=0; i<array.length; i++){
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        } int i=0; int i=0; i 0 i<array.length i array.length array array.length i++ i++ i {
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        } {
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        } if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            } i == array.length i array.length array array.length {
                System.out.println(array[i]);
            } System.out.println(array[i]) System.out.println System.out System System.out array[i] array i {
                System.out.print(String.format("%d ", array[i]));
            } System.out.print(String.format("%d ", array[i])) System.out.print System.out System System.out String.format("%d ", array[i]) String.format String "%d " array[i] array i int[] array array public static int gcd(int a, int b){
        if (b == 0) return a;
        return gcd(b, a % b);
    } gcd {
        if (b == 0) return a;
        return gcd(b, a % b);
    } if (b == 0) return a; b == 0 b 0 return a; a return gcd(b, a % b); gcd(b, a % b) gcd b a % b a b int a a int b b public static int lcm(int a, int b){
        return a * b / gcd(a, b);
    } lcm {
        return a * b / gcd(a, b);
    } return a * b / gcd(a, b); a * b / gcd(a, b) a * b a b gcd(a, b) gcd a b int a a int b b public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String reg = "\\d+";

        int a = sc.nextInt();
        int b = sc.nextInt();
        String s = sc.next();
        boolean atrue = true;
        boolean btrue = true;
        boolean hi = true;

        for(int i=0; i<s.length(); i++){
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        }

        if(atrue && btrue && hi){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }

    public static void printListOneLine(List list){
        for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        }
    }

    public static void printList(List list){
        for(int i=0; i<list.size(); i++){
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        }
    }

    public static void printArray(int[] array){
        for(int i=0; i<array.length; i++){
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        }
    }

    public static int gcd(int a, int b){
        if (b == 0) return a;
        return gcd(b, a % b);
    }

    public static int lcm(int a, int b){
        return a * b / gcd(a, b);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String reg = "\\d+";

        int a = sc.nextInt();
        int b = sc.nextInt();
        String s = sc.next();
        boolean atrue = true;
        boolean btrue = true;
        boolean hi = true;

        for(int i=0; i<s.length(); i++){
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        }

        if(atrue && btrue && hi){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }

    public static void printListOneLine(List list){
        for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        }
    }

    public static void printList(List list){
        for(int i=0; i<list.size(); i++){
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        }
    }

    public static void printArray(int[] array){
        for(int i=0; i<array.length; i++){
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        }
    }

    public static int gcd(int a, int b){
        if (b == 0) return a;
        return gcd(b, a % b);
    }

    public static int lcm(int a, int b){
        return a * b / gcd(a, b);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String reg = "\\d+";

        int a = sc.nextInt();
        int b = sc.nextInt();
        String s = sc.next();
        boolean atrue = true;
        boolean btrue = true;
        boolean hi = true;

        for(int i=0; i<s.length(); i++){
            if(i < a && !Character.isDigit(s.charAt(i))){
                atrue = false;
            }

            if (i == a && !(s.charAt(i) == '-')){
                hi = false;
            }

            if(!Character.isDigit(s.charAt(i)) && i > a){
                btrue = false;
            }
        }

        if(atrue && btrue && hi){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }

    public static void printListOneLine(List list){
        for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        }
    }

    public static void printList(List list){
        for(int i=0; i<list.size(); i++){
            if(i == list.size()){
                System.out.println(list.get(i));
            } else {
                System.out.print(String.format("%d ", list.get(i)));
            }
        }
    }

    public static void printArray(int[] array){
        for(int i=0; i<array.length; i++){
            if(i == array.length){
                System.out.println(array[i]);
            } else {
                System.out.print(String.format("%d ", array[i]));
            }
        }
    }

    public static int gcd(int a, int b){
        if (b == 0) return a;
        return gcd(b, a % b);
    }

    public static int lcm(int a, int b){
        return a * b / gcd(a, b);
    }
}
