Ivan Samsonov's submission of Small Factorial | CodeChef