Determing the last element of the input vector

I need a little help.
The input vector consists of N double elements.
The neural network should determine the last element.
Unfortunately I can’t find the right model for it.
The results are classified in the examples.
However, I expect a wide range of results.

Can someone help me with this?

Greetings Bernd