diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,6 +1,6 @@
 x, y = map(int, input().split())
 
-if y - x == 2 or x - y == 3:
+if 0 <= y - x <= 2 or 0 <= x - y <= 3:
     print("Yes")
 else:
     print("No")
