문제: https://www.acmicpc.net/problem/10872
import sys
read = lambda : sys.stdin.readline().strip()
ans = 1
for i in range(1, int(read())+1):
ans *=i
print(ans)
import java.util.*;
public class Main {
private static Scanner sc = new Scanner(System.in);
public static void main(String args[]) {
int m = sc.nextInt();
int sum = 1;
for(int i = 1; i <= m; i++){
sum *= i;
}
System.out.println(sum);
}
}