Sharp inequalities for BMO functions