#include<iostream> int main(){ int a,sum=1,i=1; scanf("%d",&a); while(i<=a){ sum=sum*i; i=i+1; } printf("%d",sum); return 0; }