diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,6 +1,6 @@
 S = input() + input()
 
-if S == ".#.#" or S == "#.#.":
+if S == ".##." or S == "#..#":
     print("No")
 else:
     print("Yes")
