N = int(input()) A = [list(input()) for _ in range(N)] cnt = sum(a.count("#") for a in A) if N%2 == cnt%2: print("Yes") else: print("No")