Boundedness of the Hardy and the Hardy-Littlewood operators in the spaces $ \operatorname {Re}H^1$ and BMO