diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -3,5 +3,5 @@
 l1, r1, l2, r2 = [int(x) for x in input().split()]
 if r1 <= l2 or r2 < l1:
     print(0)
-elif l2 < r1 and l1 < l2:
+else:
     print(min(r1, r2) - max(l1, l2))
