Input (grade 8): The first son was Kulandaiswamy, the second was Theerthagiri, the third was Thambi, fourth was Kirlother and the fifth was Kuttiswamy.
Output (grade 9): The first son was Kulandiswamy, the second was Theerthagiri, the third was Thambi, fourth was Kilothar and the fifth was Kuttiswamy.