diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,6 +1,6 @@
 R, C = map(int, input().split())
 
-if max(abs(R - 8) % 2, abs(C - 8)) % 2 != 0:
+if max(abs(R - 8), abs(C - 8)) % 2 == 0:
     print("white")
 else:
     print("black")
