diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,6 +1,6 @@
 N = int(input())
 AC = sorted(sorted([list(map(int, input().split())) for _ in range(N)]), key=lambda x: x[1])
-num, _min = AC[0]
+_min, num = AC[0]
 for i in AC[1:]:
     if num != i[1]:
         num = i[1]
