SPOJ 24: Small factorials