n = int(input()) a = "" for _ in range(n): a += input() print("Yes" if n % 2 == 1 or a.count("#") % 2 == 0 else "No")