import math import collections n=int(input()) x=list(map(int,input().split)) y=collection.Counter(x) z=list(y.values()) a=(factorial (n)) for i in z: a/=(factorial(z)) print(a)