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