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