#!/usr/bin/env python3

import sys



YES = "Yes"  # type: str

NO = "No"  # type: str





def solve(A: int, B: int, S: str):

    is_hyphen = True if S[A : A + 1] == "-" else False

    before = S[:A]

    after = S[A + 1 :]

    try:

        int(before)

        int(after)

        if is_hyphen:

            print(YES)

        else:

            print(NO)

    except:

        print(NO)



    return





# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)

def main():

    def iterate_tokens():

        for line in sys.stdin:

            for word in line.split():

                yield word



    tokens = iterate_tokens()

    A = int(next(tokens))  # type: int

    B = int(next(tokens))  # type: int

    S = next(tokens)  # type: str

    solve(A, B, S)





if __name__ == "__main__":

    main()

#!/usr/bin/env python3

import sys



YES = "Yes"  # type: str

NO = "No"  # type: str





def solve(A: int, B: int, S: str):

    is_mid = True if S[A] == "-" else False

    is_num = (S[:A] + S[A + 1 :]).find("-") == -1

    print((YES if is_mid and is_num else NO))





# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)

def main():

    def iterate_tokens():

        for line in sys.stdin:

            for word in line.split():

                yield word



    tokens = iterate_tokens()

    A = int(next(tokens))  # type: int

    B = int(next(tokens))  # type: int

    S = next(tokens)  # type: str

    solve(A, B, S)





if __name__ == "__main__":

    main()

#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, S: str):
    is_hyphen = True if S[A : A + 1] == "-" else False
    before = S[:A]
    after = S[A + 1 :]
    try:
        int(before)
        int(after)
        if is_hyphen:
            print(YES)
        else:
            print(NO)
    except:
        print(NO)
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    S = next(tokens)  # type: str
    solve(A, B, S)


if __name__ == "__main__":
    main()

#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, S: str):
    is_mid = True if S[A] == "-" else False
    is_num = (S[:A] + S[A + 1 :]).find("-") == -1
    print((YES if is_mid and is_num else NO))


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    S = next(tokens)  # type: str
    solve(A, B, S)


if __name__ == "__main__":
    main()

-    is_hyphen = True if S[A : A + 1] == "-" else False -    before = S[:A] -    after = S[A + 1 :] -    try: -        int(before) -        int(after) -        if is_hyphen: -            print(YES) -        else: -            print(NO) -    except: -        print(NO) -    return +    is_mid = True if S[A] == "-" else False +    is_num = (S[:A] + S[A + 1 :]).find("-") == -1 +    print((YES if is_mid and is_num else NO))