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