diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -7,7 +7,7 @@
 Ss = [input() for _ in range(H)]
 
 if not any("Y" in S for S in Ss):
-    print(pow(2, H - 1, MOD) * pow(2, W - 1, MOD) % MOD)
+    print(0)
     exit()
 
 lef_trim = 0
