n, a, b, c, d = map(int, input().split())
s = input()

if '##' in s[a-1:d]:
    print('No')
    exit()

if c < d:
    print('Yes')
    exit()

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

if '##' in s[a-1:d]:
    print('No')
    exit()

if c < d:
    print('Yes')
    exit()

if '...' in s[b-2:d+1]:
    print('Yes')
else:
    print('No')