The postal code in Atcoder Kingdom is A+B+1 characters long, its (A+1)-th character is a hyphen `-`, and the other characters are digits from `0` through `9`.  You are given a string S. Determine whether it follows the postal code format in Atcoder Kingdom.
A,B=list(map(int, input().split()))
S=list(input())
print(S)
ct=-1
for i in S:
    ct+=1
    if i=='-':
        break
print("Yes" if ct==A and len(S)==A+B+1 else "No")

from collections import Counter
A,B=list(map(int, input().split()))
S=list(input())

print("Yes" if S[A]=='-' and Counter(S)['-']==1 else "No")
