object Main{
	def main(args:Array[String]){
		val s = new java.util.Scanner(System.in)
		val n=s.nextInt
		val a,b=s.nextInt-1
		val c,d=s.nextInt
		val t = s.next

		lazy val fa = !t.substring(a,c).contains("##")
		lazy val fb = !t.substring(b,d).contains("##")
		lazy val fc = c<d || t.substring(math.max(0,b-1),math.min(n,d+1)).contains("...")
		println(if(fa&&fb&&fc)"Yes" else "No")
	}
}
