Check if there are distinct numbers x,y in the input file that satisfy x + y = sum.