arr1 = [0, -1, 2, -3, 1] 
s = -2
x = {}

for i in arr1:
    # Target complement logic: if (s - i) is in the dictionary, a pair exists
    if s - i in x:
        print("Found")
        break
    else:
        x[i] = 1