N,A,B,C,D = list(map(int, input().split()))
S = input()

flg = '##' in S[A-1:C] or '##' in S[B-1:D]
if C > D and not flg:
  f,e = max(A-1,B-2),min(D+1,N)

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

  flg = not '...' in S[f:e] C > D and not flg C > D C D not flg flg f,e = max(A-1,B-2),min(D+1,N) f max(A-1,B-2) max A-1 A 1 B-2 B 2 e min(D+1,N) min D+1 D 1 N flg = not '...' in S[f:e] flg not '...' in S[f:e] '...' in S[f:e] '...' S[f:e] S f:e f e print("No" if flg else "Yes") print "No" if flg else "Yes" flg "No" "Yes" flg = not '...' in S[f:e] not '...' in S[f:e] flg D = list(map(int, input().split())) list(map(int, input().split())) D e = max(A-1,B-2),min(D+1,N) min(D+1,N) e B,C,D = list(map(int, input().split())) list(map(int, input().split())) B S = input() input() S f,e = max(A-1,B-2),min(D+1,N) max(A-1,B-2) f A,B,C,D = list(map(int, input().split())) list(map(int, input().split())) A N,A,B,C,D = list(map(int, input().split())) list(map(int, input().split())) N flg = '##' in S[A-1:C] or '##' in S[B-1:D] '##' in S[A-1:C] or '##' in S[B-1:D] flg C,D = list(map(int, input().split())) list(map(int, input().split())) C
N,A,B,C,D = list(map(int, input().split()))
S = input()

flg = '##' in S[A-1:C] or '##' in S[B-1:D]
if C > D and not flg:
  f,e = max(A-1,B-2),min(D+1,N)

  flg = not '...' in S[f:e]
print("No" if flg else "Yes")