'''
生命苦短,我用python
'''
print(len(set(input())))