Consider a -hypercube also known as tesseract. A unit solid tesseract is a figure that is equal tothe convex hull of points with Cartesian coordinates (, , , ) - its vertices. It has edges (), square faces (), and cubic -faces () also known as cells. We study hollow tesseracts and define a tesseract as a boundary of a solid tesseract. Thus, a tesseract is a connected union of solid cubes (its cells) that intersect between each other at tesseract's square faces, edges and vertices.
Let's cut a tesseract along of its faces, so that it still remains connected via faces that were left intact. Unfold the tesseract into a hyperplane by rotating its constituting cubes along the faces that were left intact until all its cells lie in the same hyperplane. The result is called a -net of a tesseract. This process is a natural generalization of how a cube is cut and unfolded onto a plane to produce a -net of a cube that consists of squares.
In this problem you are given a tree-like -polycube in space also known as octocube. An octocube is a collection of unit cubical cells joined face-to-face. More formally, intersection of each pair of cubical cells constituting an octocube is either empty, a point, a unit line (), or a unit square (). The given octocube is tree-like in the following sense. Consider an adjacency graph of the octocube - a graph with vertices corresponding to its cells. There is an edge in the adjacency graph between pairs of adjacent cells. Two cells of an octocube are called adjacent when their intersection is a square. Cells that intersect at a point or a line are not considered adjacent. An octocube is called tree-like when its adjacency graph is a tree.
Your task is to determine whether the given tree-like octocube constitutes a -net of a tesseract. That is, whether this octocube being put onto a hyperplane in space can be folded in space along the squares of intersection between its cells into a tesseract.
For example, look at the leftmost picture below. It shows a wire-frame of the tree-like octocube. Rotate cell GHLKG[1]H[1]L[1]K[1] around a plane GHLK and cell FGKJF[2]G[2]K[2]J[2] around a plane FGKJ at angle degrees in -th dimension outside of the original hyperplane. As a result, point G[1] joins with G[2] and K[1] joins with K[2]. The face GKK[2]G[2] is glued to face GKK[1]G[1]. The result is shown on the right. The -th dimension is orthographically projected onto the shown in perspective. The points that have moved out of the original hyperplane are marked with hollow dots.

Rotate EFJIE[1]F[1]J[1]I[1] around EFJI and EHLIE[2]H[2]L[2]I[2] around EHLI. The result is shown on the following picture on the left. The remaining steps are as follows. Rotate MNOPQRST around MNOP, then rotate both MNOPQRST and IJKLMNOP around IJKL and rotate ABCDEFGH around EFGH. The last step is to glue all faces that meet together to get a tesseract that is shown on the right.

The first line contains there integers , , - the width, the depth, and the height of the box that contains the given octocube (1 \le m, n, k \le 8). The following groups of lines describe rectangular slices of the box from top to bottom. Each slice is described by rows with characters each. The characters on a line are either '.', denoting an empty space, or 'x', denoting a unit cube. The input is guaranteed to describe a tree-like octocube.
Write to the output a single word "Yes" if the given octocube can be folded into a tesseract or "No" otherwise.
Example 1