Pondicherry is divided into four separate parts : Pondicherry , Karaikal , Yanam , and MahÃ . Pondicherry consists of four small unconnected districts : Pondicherry , Karaikal , and Yanam on the Bay of Bengal and MahÃ on the Arabian Sea .