local n,a,b,c,d=io.read("*n","*n","*n","*n","*n","*l")
local s=io.read()

if #s:sub(a,c):match("#+")>1 or #s:sub(b,d):match("#+")>1 or #s:sub(b-1,d+1):match("#*(%.+)#*")<3 then
    print("No")
else
    print("Yes")
end