ó Afc@sHddlZddlmZd„Zd„ZedkrDeƒndS(i’’’’N(tsqrtcCsģ|dkrtdƒ‚n|dkr+gSg}x+|ddkr^|jdƒ|d}q4Wt|dƒ}d}xT||krĖ||dkr¾|j|ƒ||}t|dƒ}qx|d7}qxW|dkrč|j|ƒn|S(Nisfact() argument should be >= 1iii(t ValueErrortappendR(tntrestlimitti((s)/usr/lib64/python2.7/Demo/scripts/fact.pytfact s&      cCs…ttjƒdkr%tjd}nttdƒ}xJ|D]B}yt|ƒ}Wntk rm|GdGHq;X|Gt|ƒGHq;WdS(Nitsis not an integer(tlentsystargvtitert raw_inputtintRR(tsourcetargR((s)/usr/lib64/python2.7/Demo/scripts/fact.pytmain#s   t__main__(R tmathRRRt__name__(((s)/usr/lib64/python2.7/Demo/scripts/fact.pyts