n = int(input()) s = input().strip() print(len(set(s)))