Assign cap numbers