1 2 3 4 5 6 7 8 9 10 11 12 | import sys n = int(sys.stdin.readline().rstrip()) arr = list(map(int, sys.stdin.readline().rstrip().split())) m = [2e9, –1, –1] arr.sort(key=lambda x: abs(x)) for i in range(len(arr) – 1): s = arr[i] + arr[i + 1] if abs(s) < m[0]: m = [abs(s), min(arr[i], arr[i + 1]), max(arr[i], arr[i + 1])] print(m[1], m[2]) | cs |