#include <iostream>
using namespace std;


int factorial_doble(int n);


int main() {
  int x;
  while (cin >> x) cout << factorial_doble(x) << endl;
  return 0;
}
