int main()
{
	int a = 0;
	int n = 0;
	int b = 1;
	scanf("%d", &n);
	for (a = 1; a <= n; a++)
	{
		b = b * a;
		printf("%d\n", b);
	}

	return 0;
}