924_A. Mystical Mosaic
There is a rectangular grid of n rows of m initially-white cells each.

Arkady performed a certain number (possibly zero) of operations on it. In the i-th operation, a non-empty subset of rows Ri and a non-empty subset of columns Ci are chosen. For each row r in Ri and each column c in Ci, the intersection of row r and column c is coloured black.

There's another constraint: a row or a column can only be chosen at most once among all operations. In other words, it means that no pair of (i, j) (i < j) exists such that <image> or <image>, where <image> denotes intersection of sets, and <image> denotes the empty set.

You are to determine whether a valid sequence of operations exists that produces a given final grid.

Input

The first line contains two space-separated integers n and m (1 ≤ n, m ≤ 50) — the number of rows and columns of the grid, respectively.

Each of the following n lines contains a string of m characters, each being either '.' (denoting a white cell) or '#' (denoting a black cell), representing the desired setup.

Output

If the given grid can be achieved by any valid sequence of operations, output "Yes"; otherwise output "No" (both without quotes).

You can print each character in any case (upper or lower).

Examples

Input

5 8
.#.#..#.
.....#..
.#.#..#.
#.#....#
.....#..


Output

Yes


Input

5 5
..#..
..#..
#####
..#..
..#..


Output

No


Input

5 9
........#
#........
..##.#...
.......#.
....#.#.#


Output

No

Note

For the first example, the desired setup can be produced by 3 operations, as is shown below.

<image>

For the second example, the desired setup cannot be produced, since in order to colour the center row, the third row and all columns must be selected in one operation, but after that no column can be selected again, hence it won't be possible to colour the other cells in the center column.
```python
def read_data():
    n, m = map(int, input().strip().split())
    a = []
    for i in range(n):
        line = list(input().strip())
        for j in range(len(line)):
            if line[j] == ".":
                line[j] = 0
            else:
                line[j] = 1
        a.append(line)
    return n, m, a

def get_step(i,j):
    rows = []
    cols = []
    for k in range(m):
        if a[i][k] == 1:
            cols.append(k)
            if k in usedc:
                return "No"
            else:
                usedc.append(k)
    for k in range(n):
        if a[k][j] == 1:
            rows.append(k)
            if k in usedr:
                return "No"
            else:
                usedr.append(k)
    for row in rows:
        for col in cols:
            if a[row][col] == 0:
                return "No"
            else:
                a[row][col] = 0
    return "Ok"

def solve():
    for i in range(n):
        for j in range(m):
            if a[i][j] == 1:
                step = get_step(i,j)
                if step == "No":
                    return "No"
    return "Yes"

n, m, a = read_data()
usedr = []
usedc = []
print(solve())

```