Let $n$ be a positive integer and $W$ be the set $W=\{w_1,\ldots,w_n\}$ for positive $w_i$.
I am looking for a function $f:W\mapsto V$ (may be a bijection?) where $V=\{v_1,\ldots,v_n\}$ that satisfies the following two conditions simultaneously:
$$\sum_{i=1}^nw_i\leqslant\max\limits_{i=1,\ldots,n}\{f(w_i)\},$$ and $$\sum_{i=1}^nf(w_i)\leqslant\max\limits_{i=1,\ldots,n}\{w_i\}.$$
Can we find such a function $f$?