object Main extends App {
  val in = scala.io.Source.stdin.getLines.toSeq
  val ls = in.head.split(' ').map(_.toInt)
  val S = in.tail.head
  val N = ls(0)
  val A = ls(1)
  val B = ls(2)
  val C = ls(3)
  val D = ls(4)
  if(S.contains("##")) println("No")
  else if(D < C && !S.contains("...")) println("No")
  else println("Yes")
}
