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