n = int(input()) if n & 1: print("Yes") exit() cnt = 0 for i in range(n): cnt += input().count(".") print("Yes" if cnt % 2 == 0 else "No")