#include main() { int i, y, n; scanf("%d", & n); y = 1; for (i = 1; i <= n; i++) { y = y * i; printf("%d ", y); } printf("\n"); }