N,A,B,C,D=map(int,input().split())
S=input()
if C<D:
    if "##" not in S[A-1:D]:
        print("Yes")
    else:
        print("No")
elif D<C:
    if "##" not in S[A-1:C] and "..." in S[B-2:D+1]:
        print("Yes")
    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 C<D:
    if "##" not in S[A-1:D]:
        print("Yes")
    else:
        print("No")
elif D<C:
    if "##" not in S[A-1:C] and "..." in S[B-2:D+1]:
        print("Yes")
    else:
        print("No") C<D C D if "##" not in S[A-1:D]:
        print("Yes")
    else:
        print("No") "##" not in S[A-1:D] "##" S[A-1:D] S A-1:D A-1 A 1 D print("Yes") print "Yes" print("No") print "No" elif D<C:
    if "##" not in S[A-1:C] and "..." in S[B-2:D+1]:
        print("Yes")
    else:
        print("No") D<C D C if "##" not in S[A-1:C] and "..." in S[B-2:D+1]:
        print("Yes")
    else:
        print("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 print("Yes") print "Yes" print("No") print "No" C,D=map(int,input().split()) map(int,input().split()) C 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 S=input() input() S D=map(int,input().split()) map(int,input().split()) D B,C,D=map(int,input().split()) map(int,input().split()) B
N,A,B,C,D=map(int,input().split())
S=input()
if C<D:
    if "##" not in S[A-1:D]:
        print("Yes")
    else:
        print("No")
elif D<C:
    if "##" not in S[A-1:C] and "..." in S[B-2:D+1]:
        print("Yes")
    else:
        print("No")