S = input() N = 8 res = set() for i in range(1<>j)&1 == 1: if S[j] == "l": pw.append("1") elif S[j] == "o": pw.append("0") elif S[j] == "a": pw.append("@") elif S[j] == "s": pw.append("$") else: pw.append(S[j]) else: pw.append(S[j]) p = "".join(pw) check = [False]*3 for j in range(N): s = p[j] if s.isnumeric(): check[0] = True elif s.islower(): check[1] = True else: check[2] = True if check.count(True) == 3: res.add(p) # print(check) print(len(res))