import 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();
		boolean ans=true;
		if(s.matches("[0-9].*-[0-9].*")){
		}else{
			ans=false;
		}

		if(s.substring(a,a+1).equals("-")){
		}else{
			ans=false;
		}

		if(ans==true){
			put("Yes");
		}else{
			put("No");
		}


  }

	public static void put(String n){
		System.out.println(n);
	}

} import java.util.*; util.* java 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();
		boolean ans=true;
		if(s.matches("[0-9].*-[0-9].*")){
		}else{
			ans=false;
		}

		if(s.substring(a,a+1).equals("-")){
		}else{
			ans=false;
		}

		if(ans==true){
			put("Yes");
		}else{
			put("No");
		}


  }

	public static void put(String n){
		System.out.println(n);
	}

} 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();
		boolean ans=true;
		if(s.matches("[0-9].*-[0-9].*")){
		}else{
			ans=false;
		}

		if(s.substring(a,a+1).equals("-")){
		}else{
			ans=false;
		}

		if(ans==true){
			put("Yes");
		}else{
			put("No");
		}


  } main {
		Scanner sc = new Scanner(System.in);

		int a=sc.nextInt();
		int b=sc.nextInt();
		String s=sc.next();
		boolean ans=true;
		if(s.matches("[0-9].*-[0-9].*")){
		}else{
			ans=false;
		}

		if(s.substring(a,a+1).equals("-")){
		}else{
			ans=false;
		}

		if(ans==true){
			put("Yes");
		}else{
			put("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 boolean ans=true; ans true if(s.matches("[0-9].*-[0-9].*")){
		}else{
			ans=false;
		} s.matches("[0-9].*-[0-9].*") s.matches s "[0-9].*-[0-9].*" {
		} {
			ans=false;
		} ans=false ans false if(s.substring(a,a+1).equals("-")){
		}else{
			ans=false;
		} s.substring(a,a+1).equals("-") s.substring(a,a+1).equals s.substring(a,a+1) s.substring s a a+1 a 1 "-" {
		} {
			ans=false;
		} ans=false ans false if(ans==true){
			put("Yes");
		}else{
			put("No");
		} ans==true ans true {
			put("Yes");
		} put("Yes") put "Yes" {
			put("No");
		} put("No") put "No" String[] args args public static void put(String n){
		System.out.println(n);
	} put {
		System.out.println(n);
	} System.out.println(n) System.out.println System.out System System.out n String n n 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();
		boolean ans=true;
		if(s.matches("[0-9].*-[0-9].*")){
		}else{
			ans=false;
		}

		if(s.substring(a,a+1).equals("-")){
		}else{
			ans=false;
		}

		if(ans==true){
			put("Yes");
		}else{
			put("No");
		}


  }

	public static void put(String n){
		System.out.println(n);
	}

} 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();
		boolean ans=true;
		if(s.matches("[0-9].*-[0-9].*")){
		}else{
			ans=false;
		}

		if(s.substring(a,a+1).equals("-")){
		}else{
			ans=false;
		}

		if(ans==true){
			put("Yes");
		}else{
			put("No");
		}


  }

	public static void put(String n){
		System.out.println(n);
	}

} Main
import 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();
		boolean ans=true;
		if(s.matches("[0-9].*-[0-9].*")){
		}else{
			ans=false;
		}

		if(s.substring(a,a+1).equals("-")){
		}else{
			ans=false;
		}

		if(ans==true){
			put("Yes");
		}else{
			put("No");
		}


  }

	public static void put(String n){
		System.out.println(n);
	}

}
