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