ConsiderI think there is not such an $f:S\to S$. Consider the sequence $x^t\in S$ continuously depending on $t\in[0,1]$, such that $x_0^t=-t$ and $x_n^t=1/n $ for all $n\ge1$. If $f:S\to S$ has the stated properties,Since $f_i(x^t)$$f(x^1)$ is different from $-t$ and $ 1/n$dense, for allsome index, say $i\in \mathbb{N}$$17$, $t\in[0,1]$ andwe have $n\in\mathbb{N}_+$$-1 <f_{17}(x^1)<0$. ThereforeTherefore, for any given $i$$t=1$, $f_i(x^t)$ is either in or outside the intervalwe have $(-t, 1/n)$$$-t=x^t_0<f_{17}(x^t)<x^t_n=1/n$$ for all $t,n$, hence also in or outside the interval $(-t, 0]$$n\ge1$. But here is the contradiction:By continuity this must hold for $t>0$ there should be infinitely many $i$ such thatall $f_i\in (-t,0]$$0\le t\le1$, and nonebut it is impossible for $t=0$.