import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

/*
 public class abc084b {

 }

 */
public class Main {
  public void solve() throws FileNotFoundException {
    InputStream inputStream = System.in;

    InputHelper in = new InputHelper(inputStream);

    // actual solution
    int a = in.readInteger();
    int b = in.readInteger();

    String s = in.read();

    if (s.charAt(a) != '-') {
      System.out.println("No");
      return;
    }

    for (int i = 0; i < a; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    for (int i = a + 1; i < a + b + 1; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    System.out.println("Yes");
    // end here
  }

  public static void main(String[] args) throws FileNotFoundException {
    (new Main()).solve();
  }

  class InputHelper {
    StringTokenizer tokenizer = null;
    private BufferedReader bufferedReader;

    public InputHelper(InputStream inputStream) {
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      bufferedReader = new BufferedReader(inputStreamReader, 16384);
    }

    public String read() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }

      return tokenizer.nextToken();
    }

    public Integer readInteger() {
      return Integer.parseInt(read());
    }

    public Long readLong() {
      return Long.parseLong(read());
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.FileNotFoundException; FileNotFoundException java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
  public void solve() throws FileNotFoundException {
    InputStream inputStream = System.in;

    InputHelper in = new InputHelper(inputStream);

    // actual solution
    int a = in.readInteger();
    int b = in.readInteger();

    String s = in.read();

    if (s.charAt(a) != '-') {
      System.out.println("No");
      return;
    }

    for (int i = 0; i < a; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    for (int i = a + 1; i < a + b + 1; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    System.out.println("Yes");
    // end here
  }

  public static void main(String[] args) throws FileNotFoundException {
    (new Main()).solve();
  }

  class InputHelper {
    StringTokenizer tokenizer = null;
    private BufferedReader bufferedReader;

    public InputHelper(InputStream inputStream) {
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      bufferedReader = new BufferedReader(inputStreamReader, 16384);
    }

    public String read() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }

      return tokenizer.nextToken();
    }

    public Integer readInteger() {
      return Integer.parseInt(read());
    }

    public Long readLong() {
      return Long.parseLong(read());
    }
  }
} Main public void solve() throws FileNotFoundException {
    InputStream inputStream = System.in;

    InputHelper in = new InputHelper(inputStream);

    // actual solution
    int a = in.readInteger();
    int b = in.readInteger();

    String s = in.read();

    if (s.charAt(a) != '-') {
      System.out.println("No");
      return;
    }

    for (int i = 0; i < a; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    for (int i = a + 1; i < a + b + 1; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    System.out.println("Yes");
    // end here
  } solve {
    InputStream inputStream = System.in;

    InputHelper in = new InputHelper(inputStream);

    // actual solution
    int a = in.readInteger();
    int b = in.readInteger();

    String s = in.read();

    if (s.charAt(a) != '-') {
      System.out.println("No");
      return;
    }

    for (int i = 0; i < a; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    for (int i = a + 1; i < a + b + 1; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    System.out.println("Yes");
    // end here
  } InputStream inputStream = System.in; inputStream System.in System System.in InputHelper in = new InputHelper(inputStream); in new InputHelper(inputStream) int a = in.readInteger(); a in.readInteger() in.readInteger in int b = in.readInteger(); b in.readInteger() in.readInteger in String s = in.read(); s in.read() in.read in if (s.charAt(a) != '-') {
      System.out.println("No");
      return;
    } s.charAt(a) != '-' s.charAt(a) s.charAt s a '-' {
      System.out.println("No");
      return;
    } System.out.println("No") System.out.println System.out System System.out "No" return; for (int i = 0; i < a; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    } {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    } if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      } !Character.isDigit(s.charAt(i)) Character.isDigit(s.charAt(i)) Character.isDigit Character s.charAt(i) s.charAt s i {
        System.out.println("No");
        return;
      } System.out.println("No") System.out.println System.out System System.out "No" return; for (int i = a + 1; i < a + b + 1; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    } 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(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    } {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    } if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      } !Character.isDigit(s.charAt(i)) Character.isDigit(s.charAt(i)) Character.isDigit Character s.charAt(i) s.charAt s i {
        System.out.println("No");
        return;
      } System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" public static void main(String[] args) throws FileNotFoundException {
    (new Main()).solve();
  } main {
    (new Main()).solve();
  } (new Main()).solve() (new Main()).solve (new Main()) String[] args args class InputHelper {
    StringTokenizer tokenizer = null;
    private BufferedReader bufferedReader;

    public InputHelper(InputStream inputStream) {
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      bufferedReader = new BufferedReader(inputStreamReader, 16384);
    }

    public String read() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }

      return tokenizer.nextToken();
    }

    public Integer readInteger() {
      return Integer.parseInt(read());
    }

    public Long readLong() {
      return Long.parseLong(read());
    }
  } InputHelper StringTokenizer tokenizer = null; tokenizer null private BufferedReader bufferedReader; bufferedReader public InputHelper(InputStream inputStream) {
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      bufferedReader = new BufferedReader(inputStreamReader, 16384);
    } InputHelper {
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      bufferedReader = new BufferedReader(inputStreamReader, 16384);
    } InputStreamReader inputStreamReader = new InputStreamReader(inputStream); inputStreamReader new InputStreamReader(inputStream) bufferedReader = new BufferedReader(inputStreamReader, 16384) bufferedReader new BufferedReader(inputStreamReader, 16384) InputStream inputStream inputStream public String read() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }

      return tokenizer.nextToken();
    } read {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }

      return tokenizer.nextToken();
    } while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      } tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      } try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        } catch (IOException e) {
          e.printStackTrace();
        } IOException e {
          e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } String line = bufferedReader.readLine(); line bufferedReader.readLine() bufferedReader.readLine bufferedReader if (line == null) {
            return null;
          } line == null line null {
            return null;
          } return null; null tokenizer = new StringTokenizer(line) tokenizer new StringTokenizer(line) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer public Integer readInteger() {
      return Integer.parseInt(read());
    } readInteger {
      return Integer.parseInt(read());
    } return Integer.parseInt(read()); Integer.parseInt(read()) Integer.parseInt Integer read() read public Long readLong() {
      return Long.parseLong(read());
    } readLong {
      return Long.parseLong(read());
    } return Long.parseLong(read()); Long.parseLong(read()) Long.parseLong Long read() read public class Main {
  public void solve() throws FileNotFoundException {
    InputStream inputStream = System.in;

    InputHelper in = new InputHelper(inputStream);

    // actual solution
    int a = in.readInteger();
    int b = in.readInteger();

    String s = in.read();

    if (s.charAt(a) != '-') {
      System.out.println("No");
      return;
    }

    for (int i = 0; i < a; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    for (int i = a + 1; i < a + b + 1; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    System.out.println("Yes");
    // end here
  }

  public static void main(String[] args) throws FileNotFoundException {
    (new Main()).solve();
  }

  class InputHelper {
    StringTokenizer tokenizer = null;
    private BufferedReader bufferedReader;

    public InputHelper(InputStream inputStream) {
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      bufferedReader = new BufferedReader(inputStreamReader, 16384);
    }

    public String read() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }

      return tokenizer.nextToken();
    }

    public Integer readInteger() {
      return Integer.parseInt(read());
    }

    public Long readLong() {
      return Long.parseLong(read());
    }
  }
} public class Main {
  public void solve() throws FileNotFoundException {
    InputStream inputStream = System.in;

    InputHelper in = new InputHelper(inputStream);

    // actual solution
    int a = in.readInteger();
    int b = in.readInteger();

    String s = in.read();

    if (s.charAt(a) != '-') {
      System.out.println("No");
      return;
    }

    for (int i = 0; i < a; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    for (int i = a + 1; i < a + b + 1; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    System.out.println("Yes");
    // end here
  }

  public static void main(String[] args) throws FileNotFoundException {
    (new Main()).solve();
  }

  class InputHelper {
    StringTokenizer tokenizer = null;
    private BufferedReader bufferedReader;

    public InputHelper(InputStream inputStream) {
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      bufferedReader = new BufferedReader(inputStreamReader, 16384);
    }

    public String read() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }

      return tokenizer.nextToken();
    }

    public Integer readInteger() {
      return Integer.parseInt(read());
    }

    public Long readLong() {
      return Long.parseLong(read());
    }
  }
} Main
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

/*
 public class abc084b {

 }

 */
public class Main {
  public void solve() throws FileNotFoundException {
    InputStream inputStream = System.in;

    InputHelper in = new InputHelper(inputStream);

    // actual solution
    int a = in.readInteger();
    int b = in.readInteger();

    String s = in.read();

    if (s.charAt(a) != '-') {
      System.out.println("No");
      return;
    }

    for (int i = 0; i < a; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    for (int i = a + 1; i < a + b + 1; i++) {
      if (!Character.isDigit(s.charAt(i))) {
        System.out.println("No");
        return;
      }
    }

    System.out.println("Yes");
    // end here
  }

  public static void main(String[] args) throws FileNotFoundException {
    (new Main()).solve();
  }

  class InputHelper {
    StringTokenizer tokenizer = null;
    private BufferedReader bufferedReader;

    public InputHelper(InputStream inputStream) {
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      bufferedReader = new BufferedReader(inputStreamReader, 16384);
    }

    public String read() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          String line = bufferedReader.readLine();
          if (line == null) {
            return null;
          }
          tokenizer = new StringTokenizer(line);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }

      return tokenizer.nextToken();
    }

    public Integer readInteger() {
      return Integer.parseInt(read());
    }

    public Long readLong() {
      return Long.parseLong(read());
    }
  }
}
