Let x and y two numbers that

The given condition is that x and y are odd numbers, the simplest example is x=1 and y=499999, this summed result is 500000.
Nevertheless, there are many different values for x and y, in general
y=500000-x is odd if and only if x is odd.