open cs5, click help>activate.
you should have the option to enter your serial number for cs5.
but, if cs5 is an upgrade from cs3, you may be prompted for the cs3 serial and the cs5 serial. read the prompt(s) carefully.
once cs5 is activated, the cs6 upgrade won't ask for any serial except the cs6 serial.