#Javascript ES6, 31 bytes
    $=_=>`$=${$};$()`[prompt()];$()
#Explanation
The standard quine framework:

    $=_=>`$=${$};$()`;$()
`[prompt()]`, which is the addon, gets the value at the input index of the resulting quine string.