L ∞ Markov and Bernstein inequalities for Erdos weights