On a problem of Marczewski