diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -3,7 +3,7 @@
 f = lambda: map(int, input().split())
 N, M = f()
 G = [[] for x in " " * N * 2]
-I = 1e18
+I = 1 << 60
 T = [-I] * N + [I]
 Q = [(-I, N)]
 for m in " " * M:
