#include <iostream>

using namespace std;

int main(int argc, *char argv[]) {
    int answer = 1;
    int n = argv[1];

    for (int i = n; i != 0; i--) {
            answer *= i;
    }
cout << answer;
return 0;
}