diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,7 +1,7 @@
 A, B = map(int, input().split())
 if A + B == 3:
     print("3")
-elif A + B == 4:
+elif A + B == 4 and A != B:
     print("2")
 elif A + B == 5:
     print("1")
