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

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

if C > D:
    print('Yes' if '...' in S[B-1:D+2] and '##' not in S[A:C] else 'No')
else:
    print('Yes' if '##' not in S[A:D] else 'No')
