from math import factorial as f n = int(input("Factorial? ")) print ("Sum of digits for %d! is %d" % (n, sum(map(int, str(f(n))))))