import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = nextInt(sc);
        String b = sc.next();
        String s = sc.next();
        if(!(s.charAt(a) == '-')) {
            System.out.println("No");
        }else if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        sc.close();
    }

    static int nextInt(Scanner sc){
        return Integer.parseInt(sc.next());
    }

}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = nextInt(sc);
        String b = sc.next();
        String s = sc.next();
        if(!(s.charAt(a) == '-')) {
            System.out.println("No");
        }else if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        sc.close();
    }

    static int nextInt(Scanner sc){
        return Integer.parseInt(sc.next());
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = nextInt(sc);
        String b = sc.next();
        String s = sc.next();
        if(!(s.charAt(a) == '-')) {
            System.out.println("No");
        }else if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = nextInt(sc);
        String b = sc.next();
        String s = sc.next();
        if(!(s.charAt(a) == '-')) {
            System.out.println("No");
        }else if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = nextInt(sc); a nextInt(sc) nextInt sc String b = sc.next(); b sc.next() sc.next sc String s = sc.next(); s sc.next() sc.next sc if(!(s.charAt(a) == '-')) {
            System.out.println("No");
        }else if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } !(s.charAt(a) == '-') (s.charAt(a) == '-') s.charAt(a) s.charAt s a '-' {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } !s.substring(0, a -1).matches("^[0-9]*$") s.substring(0, a -1).matches("^[0-9]*$") s.substring(0, a -1).matches s.substring(0, a -1) s.substring s 0 a -1 a 1 "^[0-9]*$" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } !s.substring(a + 1).matches("^[0-9]*$") s.substring(a + 1).matches("^[0-9]*$") s.substring(a + 1).matches s.substring(a + 1) s.substring s a + 1 a 1 "^[0-9]*$" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" sc.close() sc.close sc String[] args args static int nextInt(Scanner sc){
        return Integer.parseInt(sc.next());
    } nextInt {
        return Integer.parseInt(sc.next());
    } return Integer.parseInt(sc.next()); Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Scanner sc sc public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = nextInt(sc);
        String b = sc.next();
        String s = sc.next();
        if(!(s.charAt(a) == '-')) {
            System.out.println("No");
        }else if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        sc.close();
    }

    static int nextInt(Scanner sc){
        return Integer.parseInt(sc.next());
    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = nextInt(sc);
        String b = sc.next();
        String s = sc.next();
        if(!(s.charAt(a) == '-')) {
            System.out.println("No");
        }else if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        sc.close();
    }

    static int nextInt(Scanner sc){
        return Integer.parseInt(sc.next());
    }

} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = nextInt(sc);
        String b = sc.next();
        String s = sc.next();
        if(!(s.charAt(a) == '-')) {
            System.out.println("No");
        }else if(!s.substring(0, a -1).matches("^[0-9]*$")){
            System.out.println("No");
        }else if(!s.substring(a + 1).matches("^[0-9]*$")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        sc.close();
    }

    static int nextInt(Scanner sc){
        return Integer.parseInt(sc.next());
    }

}

