In the core Pokémon games, Infernape cannot enter Contests. Contest stats (Cool, Beauty, Cute, Smart, Tough) apply to specific Pokémon; Infernape is battle-oriented. If you're seeing Infernape in a "Master Rank Cool Contest," it's likely:
Clarify the game and context for a precise explanation.