from itertools import combinations a = list(input()) print(len(combinations(a, len(a))))