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

kabe = S.find("##")
if kabe != -1:
    if kabe < C or kabe < D:
        print('No')
        exit()
if C < D:
    print('Yes')
else:
    A = S[:B].rfind(".")
    S = S[A:]
    B -= A
    C -= A
    D -= A
    A = 0
    irekae = S.find("...")
    if irekae == -1:
        print('No')
        exit()
    if irekae + 2 <= C and irekae < D:
        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 S = S[A-1:] S S[A-1:] S A-1: A-1 A 1 B -= A B A C -= A C A D -= A D A A = 0 A 0 kabe = S.find("##") kabe S.find("##") S.find S find "##" if kabe != -1:
    if kabe < C or kabe < D:
        print('No')
        exit() kabe != -1 kabe -1 if kabe < C or kabe < D:
        print('No')
        exit() kabe < C or kabe < D kabe < C kabe C kabe < D kabe D print('No') print 'No' exit() exit if C < D:
    print('Yes')
else:
    A = S[:B].rfind(".")
    S = S[A:]
    B -= A
    C -= A
    D -= A
    A = 0
    irekae = S.find("...")
    if irekae == -1:
        print('No')
        exit()
    if irekae + 2 <= C and irekae < D:
        print('Yes')
    else:
        print('No') C < D C D print('Yes') print 'Yes' A = S[:B].rfind(".") A S[:B].rfind(".") [:B].rfind [:B] S :B B rfind "." S = S[A:] S S[A:] S A: A B -= A B A C -= A C A D -= A D A A = 0 A 0 irekae = S.find("...") irekae S.find("...") S.find S find "..." if irekae == -1:
        print('No')
        exit()
     irekae == -1 irekae -1 print('No') print 'No' exit() exit if irekae + 2 <= C and irekae < D:
        print('Yes')
    else:
        print('No') irekae + 2 <= C and irekae < D irekae + 2 <= C irekae + 2 irekae 2 C irekae < D irekae D print('Yes') print 'Yes' print('No') print 'No' C -= A A C irekae = S.find("...") S.find("...") irekae kabe = S.find("##") S.find("##") kabe B -= A A B D = map(int,input().split()) map(int,input().split()) D C -= A A C C,D = map(int,input().split()) map(int,input().split()) C D -= A A D S = S[A-1:] S[A-1:] S S = input() input() S B -= A A B D -= A A D A,B,C,D = map(int,input().split()) map(int,input().split()) A S = S[A:] S[A:] S B,C,D = map(int,input().split()) map(int,input().split()) B A = 0 0 A A = S[:B].rfind(".") S[:B].rfind(".") A A = 0 0 A N,A,B,C,D = map(int,input().split()) map(int,input().split()) N
N,A,B,C,D = map(int,input().split())
S = input()
S = S[A-1:]
B -= A
C -= A
D -= A
A = 0

kabe = S.find("##")
if kabe != -1:
    if kabe < C or kabe < D:
        print('No')
        exit()
if C < D:
    print('Yes')
else:
    A = S[:B].rfind(".")
    S = S[A:]
    B -= A
    C -= A
    D -= A
    A = 0
    irekae = S.find("...")
    if irekae == -1:
        print('No')
        exit()
    if irekae + 2 <= C and irekae < D:
        print('Yes')
    else:
        print('No')
