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