n = int(input()) cnt = 0 for _ in range(n): s = input() cnt += s.count('.') print('Yes' if n % 2 or cnt % 2 == 0 else 'No')