#include <string>
#include <vector>
#include <unordered_map>
#include <utility>
using namespace std;
int solution(vector<vector<string>> clothes) {
int answer = 1;
unordered_map<string,int> ump;
for(int i=0; i<clothes.size(); i++){
ump[clothes[i][1]] += 1;
}
for(pair<string, int> p: ump){
answer *= (p.second + 1);
}
return answer-1;
}