It's pronoun (относительное местоимение), that has the same declension schema as adjectives.
Genitive plural here.