diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,6 +1,6 @@
 a = list(map(int, input().split()))
 a.sort()
-if a[2] > sum(a) * 2:
+if a[2] * 2 > sum(a):
     print(-1)
 elif a[0] == 0 and a[1] < a[2]:
     print(-1)
