#!/usr/bin/env python3
n, a, b, c, d = map(int, input().split())
s = input()
p = "##" not in s[a:max(c, d)]
if c > d:
    p *= "..." in s[b-2:d+1]
print(p and "Yes" or "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 p = "##" not in s[a:max(c, d)] p "##" not in s[a:max(c, d)] "##" s[a:max(c, d)] s a:max(c, d) a max(c, d) max c d if c > d:
    p *= "..." in s[b-2:d+1] c > d c d p *= "..." in s[b-2:d+1] p "..." in s[b-2:d+1] "..." s[b-2:d+1] s b-2:d+1 b-2 b 2 d+1 d 1 print(p and "Yes" or "No") print p and "Yes" or "No" p and "Yes" p "Yes" "No" c, d = map(int, input().split()) map(int, input().split()) c b, c, d = map(int, input().split()) map(int, input().split()) b a, b, c, d = map(int, input().split()) map(int, input().split()) a n, a, b, c, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d s = input() input() s p *= "..." in s[b-2:d+1] "..." in s[b-2:d+1] p p = "##" not in s[a:max(c, d)] "##" not in s[a:max(c, d)] p
#!/usr/bin/env python3
n, a, b, c, d = map(int, input().split())
s = input()
p = "##" not in s[a:max(c, d)]
if c > d:
    p *= "..." in s[b-2:d+1]
print(p and "Yes" or "No")