def f( x )
	a = 1
	(1..x).each { |i|
		a = a * i
	}
	return a
end

x = 5
printf( "%d¤Î³¬¾è¤Ï%d¤Ç¤¹\n" , x , f( x ) )