#include <stdio.h> int main(void) { int i,n,sum=1; while(scanf("%d",&n)!=EOF&&n>1&&n<=10) { for(i=1;i<=n;i++) { sum=sum*i; } printf("%d\n",sum); sum = 1; } return 0; }