import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);
        
        String[] pCodeStyle = br.readLine().split(" ");
        int pCodeStyleFront = Integer.parseInt(pCodeStyle[0]);
        int pCodeStyleBack = Integer.parseInt(pCodeStyle[1]);
        
        String S = br.readLine();
        
        while(true){
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        }
        br.close();
        writer.close();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);
        
        String[] pCodeStyle = br.readLine().split(" ");
        int pCodeStyleFront = Integer.parseInt(pCodeStyle[0]);
        int pCodeStyleBack = Integer.parseInt(pCodeStyle[1]);
        
        String S = br.readLine();
        
        while(true){
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        }
        br.close();
        writer.close();
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);
        
        String[] pCodeStyle = br.readLine().split(" ");
        int pCodeStyleFront = Integer.parseInt(pCodeStyle[0]);
        int pCodeStyleBack = Integer.parseInt(pCodeStyle[1]);
        
        String S = br.readLine();
        
        while(true){
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        }
        br.close();
        writer.close();
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);
        
        String[] pCodeStyle = br.readLine().split(" ");
        int pCodeStyleFront = Integer.parseInt(pCodeStyle[0]);
        int pCodeStyleBack = Integer.parseInt(pCodeStyle[1]);
        
        String S = br.readLine();
        
        while(true){
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        }
        br.close();
        writer.close();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter writer = new PrintWriter(System.out); writer new PrintWriter(System.out) String[] pCodeStyle = br.readLine().split(" "); pCodeStyle br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int pCodeStyleFront = Integer.parseInt(pCodeStyle[0]); pCodeStyleFront Integer.parseInt(pCodeStyle[0]) Integer.parseInt Integer pCodeStyle[0] pCodeStyle 0 int pCodeStyleBack = Integer.parseInt(pCodeStyle[1]); pCodeStyleBack Integer.parseInt(pCodeStyle[1]) Integer.parseInt Integer pCodeStyle[1] pCodeStyle 1 String S = br.readLine(); S br.readLine() br.readLine br while(true){
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        } true {
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        } if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            } S.length() == pCodeStyleFront + pCodeStyleBack + 1 S.length() S.length S pCodeStyleFront + pCodeStyleBack + 1 pCodeStyleFront + pCodeStyleBack + 1 pCodeStyleFront pCodeStyleBack 1 {
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            } if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                } S.indexOf("-") == pCodeStyleFront S.indexOf("-") S.indexOf S "-" pCodeStyleFront {
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                } if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    } S.indexOf("-", pCodeStyleFront + 1) < 0 S.indexOf("-", pCodeStyleFront + 1) S.indexOf S "-" pCodeStyleFront + 1 pCodeStyleFront 1 0 {
                        writer.println("Yes");
                        break;
                    } writer.println("Yes") writer.println writer "Yes" break; writer.println("No") writer.println writer "No" break; br.close() br.close br writer.close() writer.close writer String[] args args public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);
        
        String[] pCodeStyle = br.readLine().split(" ");
        int pCodeStyleFront = Integer.parseInt(pCodeStyle[0]);
        int pCodeStyleBack = Integer.parseInt(pCodeStyle[1]);
        
        String S = br.readLine();
        
        while(true){
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        }
        br.close();
        writer.close();
    }
} public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);
        
        String[] pCodeStyle = br.readLine().split(" ");
        int pCodeStyleFront = Integer.parseInt(pCodeStyle[0]);
        int pCodeStyleBack = Integer.parseInt(pCodeStyle[1]);
        
        String S = br.readLine();
        
        while(true){
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        }
        br.close();
        writer.close();
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);
        
        String[] pCodeStyle = br.readLine().split(" ");
        int pCodeStyleFront = Integer.parseInt(pCodeStyle[0]);
        int pCodeStyleBack = Integer.parseInt(pCodeStyle[1]);
        
        String S = br.readLine();
        
        while(true){
            if(S.length() == pCodeStyleFront + pCodeStyleBack + 1){
                if(S.indexOf("-") == pCodeStyleFront){
                    if(S.indexOf("-", pCodeStyleFront + 1) < 0){
                        writer.println("Yes");
                        break;
                    }
                }
            }
            writer.println("No");
            break;
        }
        br.close();
        writer.close();
    }
}