The string of a simple pendulum replaced by a uniform rod of length L and mass M while the bob has a mass m. It is allowed to make small oscillation. Its time period is