n,a,b,c,d = [int(x) for x in input().split()]
s = input()

ans = "Yes"
if c > d:
    tmp = s[b-2:d+1].count("...")
    if tmp == 0:
        ans = "No"

tmp = s[a-1:max(c,d)].count("##")
if tmp > 0:
    ans = "No"
print(ans) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x n,a,b,c,d = [int(x) for x in input().split()] n [int(x) for x in input().split()] a b c d s = input() s input() input ans = "Yes" ans "Yes" if c > d:
    tmp = s[b-2:d+1].count("...")
    if tmp == 0:
        ans = "No" c > d c d tmp = s[b-2:d+1].count("...") tmp s[b-2:d+1].count("...") [b-2:d+1].count [b-2:d+1] s b-2:d+1 b-2 b 2 d+1 d 1 count "..." if tmp == 0:
        ans = "No" tmp == 0 tmp 0 ans = "No" ans "No" tmp = s[a-1:max(c,d)].count("##") tmp s[a-1:max(c,d)].count("##") [a-1:max(c,d)].count [a-1:max(c,d)] s a-1:max(c,d) a-1 a 1 max(c,d) max c d count "##" if tmp > 0:
    ans = "No" tmp > 0 tmp 0 ans = "No" ans "No" print(ans) print ans d = [int(x) for x in input().split()] [int(x) for x in input().split()] d ans = "Yes" "Yes" ans ans = "No" "No" ans c,d = [int(x) for x in input().split()] [int(x) for x in input().split()] c b,c,d = [int(x) for x in input().split()] [int(x) for x in input().split()] b n,a,b,c,d = [int(x) for x in input().split()] [int(x) for x in input().split()] n tmp = s[a-1:max(c,d)].count("##") s[a-1:max(c,d)].count("##") tmp tmp = s[b-2:d+1].count("...") s[b-2:d+1].count("...") tmp ans = "No" "No" ans s = input() input() s a,b,c,d = [int(x) for x in input().split()] [int(x) for x in input().split()] a
n,a,b,c,d = [int(x) for x in input().split()]
s = input()

ans = "Yes"
if c > d:
    tmp = s[b-2:d+1].count("...")
    if tmp == 0:
        ans = "No"

tmp = s[a-1:max(c,d)].count("##")
if tmp > 0:
    ans = "No"
print(ans)