Input (grade 6): The four ancient Tamil empires of Chera, Chola, Pandya and Pallavas were of ancient origins.
Output (grade 5): The three Tamil dynasties of Chera, Chola and Pandya were of ancient origins.