[(stdin nextLine ifNil:[^0];asNumber)factorial printNl]repeat!