diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,5 +1,5 @@
 a, b = map(int, input().split())
-if abs(a - b) == 1 or 9:
+if b - a == 1 or b - a == 9:
     print("Yes")
 else:
     print("No")
