http://www.spoj.com/problems/LENGFACT/