import re
N,A,B,C,D = (int(x) for x in input().split())
S = input()
if re.search(r'##',S[A-1:max(C,D)]):
    print('No')
else:
    if D < C:
        if re.search(r'\.\.\.',S[B-2:D+1]):
            print('Yes')
        else:
            print('No')
    else:
        print('Yes') import re re int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N,A,B,C,D = (int(x) for x in input().split()) N (int(x) for x in input().split()) A B C D S = input() S input() input if re.search(r'##',S[A-1:max(C,D)]):
    print('No')
else:
    if D < C:
        if re.search(r'\.\.\.',S[B-2:D+1]):
            print('Yes')
        else:
            print('No')
    else:
        print('Yes') re.search(r'##',S[A-1:max(C,D)]) re.search re search r'##' 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' if D < C:
        if re.search(r'\.\.\.',S[B-2:D+1]):
            print('Yes')
        else:
            print('No')
    else:
        print('Yes') D < C D C if re.search(r'\.\.\.',S[B-2:D+1]):
            print('Yes')
        else:
            print('No')
     re.search(r'\.\.\.',S[B-2:D+1]) re.search re search r'\.\.\.' 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' print('Yes') print 'Yes' C,D = (int(x) for x in input().split()) (int(x) for x in input().split()) C N,A,B,C,D = (int(x) for x in input().split()) (int(x) for x in input().split()) N D = (int(x) for x in input().split()) (int(x) for x in input().split()) D A,B,C,D = (int(x) for x in input().split()) (int(x) for x in input().split()) A B,C,D = (int(x) for x in input().split()) (int(x) for x in input().split()) B S = input() input() S
import re
N,A,B,C,D = (int(x) for x in input().split())
S = input()
if re.search(r'##',S[A-1:max(C,D)]):
    print('No')
else:
    if D < C:
        if re.search(r'\.\.\.',S[B-2:D+1]):
            print('Yes')
        else:
            print('No')
    else:
        print('Yes')