[n,a,b,c,d] = [int(i)-1 for i in input().split()]
s = input()
if c < b:
    if "##" in s[a:c+1] or "##" in s[b:d+1]:
        print("No")
    else:
        print("Yes")
elif d < c :
    if "##" not in s[a:c+1]and "..." in s[b-1:d+2]:
        print("Yes")
    else:
        print("No")
else:
    if "##" not in s[b:d+1]:
        if "##" not in s[a:c+1]:
            print("Yes")
        else:
            print("No")
    else:
        print("No") int(i)-1 for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i)-1 int(i) int i 1 [n,a,b,c,d] = [int(i)-1 for i in input().split()] [n,a,b,c,d] n a b c d [int(i)-1 for i in input().split()] s = input() s input() input if c < b:
    if "##" in s[a:c+1] or "##" in s[b:d+1]:
        print("No")
    else:
        print("Yes")
elif d < c :
    if "##" not in s[a:c+1]and "..." in s[b-1:d+2]:
        print("Yes")
    else:
        print("No")
else:
    if "##" not in s[b:d+1]:
        if "##" not in s[a:c+1]:
            print("Yes")
        else:
            print("No")
    else:
        print("No") c < b c b if "##" in s[a:c+1] or "##" in s[b:d+1]:
        print("No")
    else:
        print("Yes") "##" in s[a:c+1] or "##" in s[b:d+1] "##" in s[a:c+1] "##" s[a:c+1] s a:c+1 a c+1 c 1 "##" in s[b:d+1] "##" s[b:d+1] s b:d+1 b d+1 d 1 print("No") print "No" print("Yes") print "Yes" elif d < c :
    if "##" not in s[a:c+1]and "..." in s[b-1:d+2]:
        print("Yes")
    else:
        print("No") d < c d c if "##" not in s[a:c+1]and "..." in s[b-1:d+2]:
        print("Yes")
    else:
        print("No") "##" not in s[a:c+1]and "..." in s[b-1:d+2] "##" not in s[a:c+1] "##" s[a:c+1] s a:c+1 a c+1 c 1 "..." in s[b-1:d+2] "..." s[b-1:d+2] s b-1:d+2 b-1 b 1 d+2 d 2 print("Yes") print "Yes" print("No") print "No" if "##" not in s[b:d+1]:
        if "##" not in s[a:c+1]:
            print("Yes")
        else:
            print("No")
    else:
        print("No") "##" not in s[b:d+1] "##" s[b:d+1] s b:d+1 b d+1 d 1 if "##" not in s[a:c+1]:
            print("Yes")
        else:
            print("No")
     "##" not in s[a:c+1] "##" s[a:c+1] s a:c+1 a c+1 c 1 print("Yes") print "Yes" print("No") print "No" print("No") print "No" s = input() input() s
[n,a,b,c,d] = [int(i)-1 for i in input().split()]
s = input()
if c < b:
    if "##" in s[a:c+1] or "##" in s[b:d+1]:
        print("No")
    else:
        print("Yes")
elif d < c :
    if "##" not in s[a:c+1]and "..." in s[b-1:d+2]:
        print("Yes")
    else:
        print("No")
else:
    if "##" not in s[b:d+1]:
        if "##" not in s[a:c+1]:
            print("Yes")
        else:
            print("No")
    else:
        print("No")
