diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,5 +1,5 @@
 L, R, LL, RR = map(int, input().split())
 l = max(L, LL)
 r = min(R, RR)
-ans = max(r - l + 1, 0)
+ans = max(r - l, 0)
 print(ans)
