Construction of a residential building with two entrances