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