n, a, b, c, d = map(int, input().split())
S = input()
if c < d:
    if "##" in S[a-1:d]:
        print("No")
    else:
        print("Yes")
else:
    f = S[b-2:d+1].find("...")
    if f != -1 and ("##" not in S[a-1:c]):
        print("Yes")
    else:
        print("No") n, a, b, c, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split a b c d S = input() S input() input if c < d:
    if "##" in S[a-1:d]:
        print("No")
    else:
        print("Yes")
else:
    f = S[b-2:d+1].find("...")
    if f != -1 and ("##" not in S[a-1:c]):
        print("Yes")
    else:
        print("No") c < d c d if "##" in S[a-1:d]:
        print("No")
    else:
        print("Yes") "##" in S[a-1:d] "##" S[a-1:d] S a-1:d a-1 a 1 d print("No") print "No" print("Yes") print "Yes" f = S[b-2:d+1].find("...") f S[b-2:d+1].find("...") [b-2:d+1].find [b-2:d+1] S b-2:d+1 b-2 b 2 d+1 d 1 find "..." if f != -1 and ("##" not in S[a-1:c]):
        print("Yes")
    else:
        print("No") f != -1 and ("##" not in S[a-1:c]) f != -1 f -1 "##" not in S[a-1:c] "##" S[a-1:c] S a-1:c a-1 a 1 c print("Yes") print "Yes" print("No") print "No" c, d = map(int, input().split()) map(int, input().split()) c S = input() input() S n, a, b, c, d = map(int, input().split()) map(int, input().split()) n f = S[b-2:d+1].find("...") S[b-2:d+1].find("...") f a, b, c, d = map(int, input().split()) map(int, input().split()) a b, c, d = map(int, input().split()) map(int, input().split()) b d = map(int, input().split()) map(int, input().split()) d
n, a, b, c, d = map(int, input().split())
S = input()
if c < d:
    if "##" in S[a-1:d]:
        print("No")
    else:
        print("Yes")
else:
    f = S[b-2:d+1].find("...")
    if f != -1 and ("##" not in S[a-1:c]):
        print("Yes")
    else:
        print("No")