#include<iostream> using namespace std; int main() { int a,b = 1; cin >> a; for (int i = a;i > 0;i--) { b = b * i; } cout << b; return 0; }