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