n,a,b,c,d = map(int,input().split())
s = input()
if "##" in s[min(a,b)-1:max(c,d)]:
    print("No")
else:
    if d > c:
        print("Yes")
    else:
        for i in range(b-1,d):
            if s[i-1] == "." and s[i] == "." and s[i+1] == ".":
                print("Yes")
                break
        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 "##" in s[min(a,b)-1:max(c,d)]:
    print("No")
else:
    if d > c:
        print("Yes")
    else:
        for i in range(b-1,d):
            if s[i-1] == "." and s[i] == "." and s[i+1] == ".":
                print("Yes")
                break
        else:
            print("No") "##" in s[min(a,b)-1:max(c,d)] "##" s[min(a,b)-1:max(c,d)] s min(a,b)-1:max(c,d) min(a,b)-1 min(a,b) min a b 1 max(c,d) max c d print("No") print "No" if d > c:
        print("Yes")
    else:
        for i in range(b-1,d):
            if s[i-1] == "." and s[i] == "." and s[i+1] == ".":
                print("Yes")
                break
        else:
            print("No") d > c d c print("Yes") print "Yes" for i in range(b-1,d):
            if s[i-1] == "." and s[i] == "." and s[i+1] == ".":
                print("Yes")
                break
        else:
            print("No") i range(b-1,d) range b-1 b 1 d if s[i-1] == "." and s[i] == "." and s[i+1] == ".":
                print("Yes")
                break
         s[i-1] == "." and s[i] == "." and s[i+1] == "." s[i-1] == "." and s[i] == "." s[i-1] == "." s[i-1] s i-1 i 1 "." s[i] == "." s[i] s i "." s[i+1] == "." s[i+1] s i+1 i 1 "." print("Yes") print "Yes" break print("No") print "No" d = map(int,input().split()) map(int,input().split()) d s = input() input() s n,a,b,c,d = map(int,input().split()) map(int,input().split()) n a,b,c,d = map(int,input().split()) map(int,input().split()) a c,d = map(int,input().split()) map(int,input().split()) c b,c,d = map(int,input().split()) map(int,input().split()) b
n,a,b,c,d = map(int,input().split())
s = input()
if "##" in s[min(a,b)-1:max(c,d)]:
    print("No")
else:
    if d > c:
        print("Yes")
    else:
        for i in range(b-1,d):
            if s[i-1] == "." and s[i] == "." and s[i+1] == ".":
                print("Yes")
                break
        else:
            print("No")