n,a,b,c,d = map(int,input().split())
s = input()
ng = '##'
if c < d:
    if (ng in s[b-1:d]) or (ng in s[a-1:c]):
        print('No')
    else:
        print('Yes')
else:
    if ('...' not in s[b-2:d+1]):
        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 = input() s input() input ng = '##' ng '##' if c < d:
    if (ng in s[b-1:d]) or (ng in s[a-1:c]):
        print('No')
    else:
        print('Yes')
else:
    if ('...' not in s[b-2:d+1]):
        print('No')
    else:
        print('Yes') c < d c d if (ng in s[b-1:d]) or (ng in s[a-1:c]):
        print('No')
    else:
        print('Yes') (ng in s[b-1:d]) or (ng in s[a-1:c]) ng in s[b-1:d] ng s[b-1:d] s b-1:d b-1 b 1 d ng in s[a-1:c] ng s[a-1:c] s a-1:c a-1 a 1 c print('No') print 'No' print('Yes') print 'Yes' if ('...' not in s[b-2:d+1]):
        print('No')
    else:
        print('Yes') '...' not 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('No') print 'No' print('Yes') print 'Yes' ng = '##' '##' ng a,b,c,d = map(int,input().split()) map(int,input().split()) a b,c,d = map(int,input().split()) map(int,input().split()) b c,d = map(int,input().split()) map(int,input().split()) c n,a,b,c,d = map(int,input().split()) map(int,input().split()) n d = map(int,input().split()) map(int,input().split()) d s = input() input() s
n,a,b,c,d = map(int,input().split())
s = input()
ng = '##'
if c < d:
    if (ng in s[b-1:d]) or (ng in s[a-1:c]):
        print('No')
    else:
        print('Yes')
else:
    if ('...' not in s[b-2:d+1]):
        print('No')
    else:
        print('Yes')