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