Domino 2#1990

Domino 2

1 second
128 megabytes
Very easy

A rectangular board is given, with some of its cells cut out. Determine whether it is possible to cover all the remaining cells with domino tiles.

Input

The first line contains two integers and (1 \le m, n \le 40) — the dimensions of the board. Each of the next lines contains characters. In these lines, the -th character of the -th line is X (uppercase Latin X) if the cell is cut out, and . (dot) if the cell is empty.

Output

Print YES if it is possible to cover the board with domino tiles, and NO otherwise.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading