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 str = sc.next();
		String ans="No";
		
		for(int i=0; i<a; i++){
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		}
		
		if(str.substring(a,a+1).equals("-") && ans=="Yes"){
		    ans = "Yes";
		}else{
		    ans = "No";
		}
		
		for(int i=a+1; i<a+b+1; i++){
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		}
		
        System.out.println(ans);
	}
} 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 str = sc.next();
		String ans="No";
		
		for(int i=0; i<a; i++){
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		}
		
		if(str.substring(a,a+1).equals("-") && ans=="Yes"){
		    ans = "Yes";
		}else{
		    ans = "No";
		}
		
		for(int i=a+1; i<a+b+1; i++){
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		}
		
        System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		String ans="No";
		
		for(int i=0; i<a; i++){
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		}
		
		if(str.substring(a,a+1).equals("-") && ans=="Yes"){
		    ans = "Yes";
		}else{
		    ans = "No";
		}
		
		for(int i=a+1; i<a+b+1; i++){
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		}
		
        System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		String ans="No";
		
		for(int i=0; i<a; i++){
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		}
		
		if(str.substring(a,a+1).equals("-") && ans=="Yes"){
		    ans = "Yes";
		}else{
		    ans = "No";
		}
		
		for(int i=a+1; i<a+b+1; i++){
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		}
		
        System.out.println(ans);
	} 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 str = sc.next(); str sc.next() sc.next sc String ans="No"; ans "No" for(int i=0; i<a; i++){
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		} {
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		} if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    } Character.isDigit(str.charAt(i)) Character.isDigit Character str.charAt(i) str.charAt str i {
		        ans = "Yes";
		    } ans = "Yes" ans "Yes" if(str.substring(a,a+1).equals("-") && ans=="Yes"){
		    ans = "Yes";
		}else{
		    ans = "No";
		} str.substring(a,a+1).equals("-") && ans=="Yes" str.substring(a,a+1).equals("-") str.substring(a,a+1).equals str.substring(a,a+1) str.substring str a a+1 a 1 "-" ans=="Yes" ans "Yes" {
		    ans = "Yes";
		} ans = "Yes" ans "Yes" {
		    ans = "No";
		} ans = "No" ans "No" for(int i=a+1; i<a+b+1; i++){
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		} int i=a+1; int i=a+1; i a+1 a 1 i<a+b+1 i a+b+1 a+b+1 a b 1 i++ i++ i {
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		} {
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		} if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    } Character.isDigit(str.charAt(i)) && ans=="Yes" Character.isDigit(str.charAt(i)) Character.isDigit Character str.charAt(i) str.charAt str i ans=="Yes" ans "Yes" {
		        ans = "Yes";
		    } ans = "Yes" ans "Yes" {
		        ans = "No";
		    } ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		String ans="No";
		
		for(int i=0; i<a; i++){
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		}
		
		if(str.substring(a,a+1).equals("-") && ans=="Yes"){
		    ans = "Yes";
		}else{
		    ans = "No";
		}
		
		for(int i=a+1; i<a+b+1; i++){
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		}
		
        System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		String ans="No";
		
		for(int i=0; i<a; i++){
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		}
		
		if(str.substring(a,a+1).equals("-") && ans=="Yes"){
		    ans = "Yes";
		}else{
		    ans = "No";
		}
		
		for(int i=a+1; i<a+b+1; i++){
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		}
		
        System.out.println(ans);
	}
} 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 str = sc.next();
		String ans="No";
		
		for(int i=0; i<a; i++){
		    if(Character.isDigit(str.charAt(i))){
		        ans = "Yes";
		    }
		}
		
		if(str.substring(a,a+1).equals("-") && ans=="Yes"){
		    ans = "Yes";
		}else{
		    ans = "No";
		}
		
		for(int i=a+1; i<a+b+1; i++){
		    if(Character.isDigit(str.charAt(i)) && ans=="Yes"){
		        ans = "Yes";
		    }else{
		        ans = "No";
		    }
		}
		
        System.out.println(ans);
	}
}
