#include <stdio.h> int main() { int input; int sum = 1; scanf("%d", &input); for (int i = input; i > 0; i--) { sum = sum * i; } printf("%d", sum); return 0; }