N, A, B, C, D = (int(i) for i in input().split())  
S = input()

bef = ''
row_dot_max = 0
count = 0
for i, s in enumerate(S):
  if bef == '#' and s == '#' and i > A and i <= max(C,D)-2:
    print('No')
    exit()
  
  if s == '.' and i >= B-2 and i <= D:
    count += 1
  else:
    row_dot_max = max(row_dot_max, count)
    count = 0
  bef = s

row_dot_max = max(row_dot_max, count)
if C > D:
  if row_dot_max >= 3:
    print('Yes')
  else:
    print('No')
else:
  print('Yes') int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N, A, B, C, D = (int(i) for i in input().split()) N (int(i) for i in input().split()) A B C D S = input() S input() input bef = '' bef '' row_dot_max = 0 row_dot_max 0 count = 0 count 0 for i, s in enumerate(S):
  if bef == '#' and s == '#' and i > A and i <= max(C,D)-2:
    print('No')
    exit()
  
  if s == '.' and i >= B-2 and i <= D:
    count += 1
  else:
    row_dot_max = max(row_dot_max, count)
    count = 0
  bef = s i s enumerate(S) enumerate S if bef == '#' and s == '#' and i > A and i <= max(C,D)-2:
    print('No')
    exit()
  
   bef == '#' and s == '#' and i > A and i <= max(C,D)-2 bef == '#' and s == '#' and i > A bef == '#' and s == '#' bef == '#' bef '#' s == '#' s '#' i > A i A i <= max(C,D)-2 i max(C,D)-2 max(C,D) max C D 2 print('No') print 'No' exit() exit if s == '.' and i >= B-2 and i <= D:
    count += 1
  else:
    row_dot_max = max(row_dot_max, count)
    count = 0
   s == '.' and i >= B-2 and i <= D s == '.' and i >= B-2 s == '.' s '.' i >= B-2 i B-2 B 2 i <= D i D count += 1 count 1 row_dot_max = max(row_dot_max, count) row_dot_max max(row_dot_max, count) max row_dot_max count count = 0 count 0 bef = s bef s row_dot_max = max(row_dot_max, count) row_dot_max max(row_dot_max, count) max row_dot_max count if C > D:
  if row_dot_max >= 3:
    print('Yes')
  else:
    print('No')
else:
  print('Yes') C > D C D if row_dot_max >= 3:
    print('Yes')
  else:
    print('No') row_dot_max >= 3 row_dot_max 3 print('Yes') print 'Yes' print('No') print 'No' print('Yes') print 'Yes' row_dot_max = max(row_dot_max, count) max(row_dot_max, count) row_dot_max row_dot_max = 0 0 row_dot_max bef = s s bef row_dot_max = max(row_dot_max, count) max(row_dot_max, count) row_dot_max B, C, D = (int(i) for i in input().split()) (int(i) for i in input().split()) B D = (int(i) for i in input().split()) (int(i) for i in input().split()) D S = input() input() S count = 0 0 count count = 0 0 count A, B, C, D = (int(i) for i in input().split()) (int(i) for i in input().split()) A C, D = (int(i) for i in input().split()) (int(i) for i in input().split()) C count += 1 1 count N, A, B, C, D = (int(i) for i in input().split()) (int(i) for i in input().split()) N bef = '' '' bef
N, A, B, C, D = (int(i) for i in input().split())  
S = input()

bef = ''
row_dot_max = 0
count = 0
for i, s in enumerate(S):
  if bef == '#' and s == '#' and i > A and i <= max(C,D)-2:
    print('No')
    exit()
  
  if s == '.' and i >= B-2 and i <= D:
    count += 1
  else:
    row_dot_max = max(row_dot_max, count)
    count = 0
  bef = s

row_dot_max = max(row_dot_max, count)
if C > D:
  if row_dot_max >= 3:
    print('Yes')
  else:
    print('No')
else:
  print('Yes')