N, A, B, C, D = [int(_) for _ in input().split()]
S = input()

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

if "##" in S[A-1:C] or "##" in S[B-1:D]:
    print("No")
elif C < D:
    print("Yes")
elif "..." in S[B-2:D+1]:
    print("Yes")
else:
    print("No")
