(i)in the case of a person convicted of an offence mentioned in clause (a) (i) an offence falling under any of the chapters of the Indian Penal Code, and (ii) in the case of a person convicted of an offence mentioned in clauses (a) (excluding sub-clause (i) thereof), (b) and (c), an offence falling under the provisions of the Acts mentioned respectively in the said clauses.]