_, A, B, C, D = map(lambda n: int(n) - 1, input().split())
S = input()
if S.count("##", A, D):
    print("No")
elif C < D:
    print("Yes")
elif S.count("...", B - 1, D + 2):
    print("Yes")
else:
    print("No") _, A, B, C, D = map(lambda n: int(n) - 1, input().split()) _ map(lambda n: int(n) - 1, input().split()) map lambda n: int(n) - 1 int(n) - 1 int(n) int n 1 n input().split() ().split () input split A B C D S = input() S input() input if S.count("##", A, D):
    print("No")
elif C < D:
    print("Yes")
elif S.count("...", B - 1, D + 2):
    print("Yes")
else:
    print("No") S.count("##", A, D) S.count S count "##" A D print("No") print "No" elif C < D:
    print("Yes") C < D C D print("Yes") print "Yes" elif S.count("...", B - 1, D + 2):
    print("Yes") S.count("...", B - 1, D + 2) S.count S count "..." B - 1 B 1 D + 2 D 2 print("Yes") print "Yes" print("No") print "No" A, B, C, D = map(lambda n: int(n) - 1, input().split()) map(lambda n: int(n) - 1, input().split()) A _, A, B, C, D = map(lambda n: int(n) - 1, input().split()) map(lambda n: int(n) - 1, input().split()) _ B, C, D = map(lambda n: int(n) - 1, input().split()) map(lambda n: int(n) - 1, input().split()) B C, D = map(lambda n: int(n) - 1, input().split()) map(lambda n: int(n) - 1, input().split()) C D = map(lambda n: int(n) - 1, input().split()) map(lambda n: int(n) - 1, input().split()) D S = input() input() S
_, A, B, C, D = map(lambda n: int(n) - 1, input().split())
S = input()
if S.count("##", A, D):
    print("No")
elif C < D:
    print("Yes")
elif S.count("...", B - 1, D + 2):
    print("Yes")
else:
    print("No")