/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: baloon.cpp * Author: cteam081 * * Created on 22. října 2016, 10:25 */ #include #include #include using namespace std; string normalize(string input) { string result=".........."; for (char c:input) { result[c-'0']='x'; } return result; } int main() { set types; int amount; while(cin >> amount) { types.clear(); string x; while(amount--) { cin >> x; types.insert(normalize(x)); } cout << types.size() << endl; } return 0; }