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