import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		boolean flag=true;
		String s=sc.next();

		for(int i=0;i<a+b+1;i++) {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		}
		if(!(s.charAt(a)=='-'))flag=false;
		
		if(flag)		System.out.println("Yes");
		else		System.out.println("No");
		
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		boolean flag=true;
		String s=sc.next();

		for(int i=0;i<a+b+1;i++) {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		}
		if(!(s.charAt(a)=='-'))flag=false;
		
		if(flag)		System.out.println("Yes");
		else		System.out.println("No");
		
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		boolean flag=true;
		String s=sc.next();

		for(int i=0;i<a+b+1;i++) {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		}
		if(!(s.charAt(a)=='-'))flag=false;
		
		if(flag)		System.out.println("Yes");
		else		System.out.println("No");
		
	} main {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		boolean flag=true;
		String s=sc.next();

		for(int i=0;i<a+b+1;i++) {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		}
		if(!(s.charAt(a)=='-'))flag=false;
		
		if(flag)		System.out.println("Yes");
		else		System.out.println("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 boolean flag=true; flag true String s=sc.next(); s sc.next() sc.next sc for(int i=0;i<a+b+1;i++) {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		} int i=0; int i=0; i 0 i<a+b+1 i a+b+1 a+b+1 a b 1 i++ i++ i {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		} {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		} if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false; (i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9') (i!=(a)) i (a) !('0' <= s.charAt(i) && s.charAt(i) <= '9') ('0' <= s.charAt(i) && s.charAt(i) <= '9') '0' <= s.charAt(i) '0' s.charAt(i) s.charAt s i s.charAt(i) <= '9' s.charAt(i) s.charAt s i '9' flag=false flag false if(!(s.charAt(a)=='-'))flag=false; !(s.charAt(a)=='-') (s.charAt(a)=='-') s.charAt(a) s.charAt s a '-' flag=false flag false if(flag)		System.out.println("Yes");
		else		System.out.println("No"); flag System.out.println("Yes") System.out.println System.out System System.out "Yes" 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) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		boolean flag=true;
		String s=sc.next();

		for(int i=0;i<a+b+1;i++) {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		}
		if(!(s.charAt(a)=='-'))flag=false;
		
		if(flag)		System.out.println("Yes");
		else		System.out.println("No");
		
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		boolean flag=true;
		String s=sc.next();

		for(int i=0;i<a+b+1;i++) {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		}
		if(!(s.charAt(a)=='-'))flag=false;
		
		if(flag)		System.out.println("Yes");
		else		System.out.println("No");
		
	}
} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		boolean flag=true;
		String s=sc.next();

		for(int i=0;i<a+b+1;i++) {
			if((i!=(a))&&!('0' <= s.charAt(i) && s.charAt(i) <= '9'))	flag=false;
		}
		if(!(s.charAt(a)=='-'))flag=false;
		
		if(flag)		System.out.println("Yes");
		else		System.out.println("No");
		
	}
}