Go: package main

import "fmt"

func main() {
	var n int
	fmt.Scan(&n)

	rs := 1
	for i := 1; i <= n; i++ {
		rs *= i
	}
	fmt.Println(rs)
}

C++: #include <iostream>
using namespace std;
int main(){
    int n;
    while(cin >> n && n){
        int x = 0;
        for(int i=0; i<n; ++i){
            x = x*(i+1);
        }
        cout << x << endl;
    }
}

C++: #include<stdio.h>

using namespace std;


long long int factriolf(long long int n)
{
    long long int f,i;
    f = 1;
    for (i = 1; i<=n;i++)
    {
      f = f *i;
    }
    return f;
}

int main ()
{
    long long int n;
    scanf("%lld",&n);

long long int r = factriolf(n);

printf("%lld\n",r);

return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
	long long int n,ans = 1;
	cin >> n;
	if (n <= 20 && n >= 1) {
		for (int a = 1; a <= n; a++) {
			ans = ans*a;
		}
		cout << ans << endl;
	}
}

C++: //0019
#include <bits/stdc++.h>
using namespace std;

int main(){
	int n,ans = 1;
	for(cin>>n;n != 0;n--){
	ans *= n;
}
	cout<<ans<<endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a;
  int ans = 0;
  cin >> a;
  for(int i=a-1;i>0;i--) a = a * i;
  cout << a << endl;
  return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <cmath>
#include <algorithm>
#include <string>
#define shosu(x) fixed<<setprecision(x)
using namespace std;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,P> pip;
typedef long long ll;
const int inf=(1<<31)-1;
const double pi=acos(-1);

int n;
ll ans=1;

int main(){
	cin>>n;
	for(int i=2;i<=n;i++){
		ans*=i;
	}
	cout<<ans<<endl;
}

C++: #include<iostream>
using namespace std;
int main()
{
    long int n, i, fact=1;
    cin>>n;
    
    for(i=1; i<=n; i++)
    {
        fact=fact*i;
    }
    cout<<fact<<endl;
}

C++: #include <iostream> 
#include <cstdio>
#include <algorithm>
using namespace std;
int main(){
	int long long n,ans=1;
	while(cin>>n){
	for(int i=1;i<=n;i++){
		ans*=i;
	}
	cout<<ans<<endl;
	}
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	int n;
	int i;
	long long ans=1;

	cin >> n;
	for(i=0; i<n; i++){
		ans = ans * (i+1);
	}
	cout << ans << endl;

	return 0;

}

C++: #include <iostream>
using namespace std;

int main(){
   long n=5, sum = 1;
   cin >> n;
   for(long i = 1;i <= n;++i){
      sum *= i;
  }
  cout << sum << endl;
 return 0;
}

C++: 
#include <iostream>
using namespace std;
int main(){
    long long ans[20];
    int i,n;
    cin>>n;
    for(i=0;i<=n;i++){
        if(i==0){
            ans[0]=1;
        }else{
            ans[i]=ans[i-1]*i;
        }
    }
    cout<<ans[n]<<endl;
    return 0;
}

C++: #include <cstdio>
using namespace std;

int main()
{
	int n;
	
	scanf("%d", &n);
		int total=1;
	
		for(int i = 1; i <= n; i++){
			total *= i;
		}
	
		printf("%d\n", total);
	
	return (0);
}

C++: #include <iostream>
using namespace std;

int main(void)
{
 int a,b;
 cin >> a;
 for(i=a;i>0;i--)
 {
   b*=i;
 }
  cout << b;
  return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
    int n;
    cin>>n;
    int sum=1;
    for(int i=1; i<=n; i++){
        sum*=i;
    }
    cout<<sum<<endl;
    return 0;
}

C++: #include <stdio.h>
 
int main()
{
  int c, n;
  long long int fact = 1;
  scanf("%d", &n);
  for (c = 1; c <= n; c++)
    fact = fact * c;
 
  printf("%lld\n",fact);
 
  return 0;
}

C++: #include <iostream>
using namespace std;

unsigned fact(unsigned n)
{
	if(n==0 || n==1)
		return 1;
	return n*fact(n-1);
}

int main()
{
	unsigned n;
	cin >> n;
		cout << fact(n) << endl;
	return 0;
}

C++: main(){printf("2432902008176640000\n");return;}

C++: #include <iostream>
using namespace std;

long long int fact(long long int n){
    if(n == 0) return 1;
    return n * fact(n-1);
}

int main(){
    long long int n;
    cin >> n;
    cout << fact(n) << endl;
}

C++: #define scanf_s scanf
//#define gets_s gets
#include <stdio.h>
#include <string>
#include <iostream>
#include <math.h>
using namespace std;
#define MAX 81
#define _MAX 100
#define ABC 26
int main(void)
{
	int n, ans = 1;
	scanf_s("%d", &n);
	for (int i = 1; i <= n; ++i) {
		ans *= i;
	}
	printf("%d\n", ans);
}

C++: #include <iostream>
using namespace std;

long int fact(int n){
  if(n==2) return 2;
  else return (long int)n*fact(n-1);
}

int main()
{
  int n;
  long int f;
  cin >> n;
  f=fact(n);
  cout << f << endl;
  return 0;
}

C++: #include <algorithm>
#include <iostream>
#include <cstdio>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <string.h>
using namespace std;

#define ISEQ(c) (c).begin(), (c).end()
typedef long long ll;

int main() {
  int n;
  scanf("%d", &n);
  ll res = 1LL;
  for (int i = 1; i <= n; i++)
    res *= i;
  printf("%ld\n", res);
}

C++: #include <stdio.h>

int main()
{
	int n, x;

	x = 1;

	scanf("%d", &n);

	for (int i = 1; i <= n; i++){
		x *= i;
	}

	printf("%d\n", x);

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

int main(){
    long n;
    int k=1;
    cin>>n;
    int i;
    for(i=1;i<=n;i++){
        k=k*i;
    }
    cout<<k<<endl;
    return(0);
}

C++: #include <cstdio>
#include <iostream>

using namespace std;

int main()
{
	int n,ans = 1;

	scanf("%d",&n);
	for(int i = 2; i <= n; i++){
		ans *= i;
	}
	printf("%d\n",ans);

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int n;
    double x=1;
    cin >> n;
    for (int i=1;i<=n;i++){
        x*=i ;
    }
    // cout << x << endl;
    printf("%25.0f",x);
}

C++: #include<iostream>
using namespace std;
int main(){
    int n,a=1;
    cin>>n;
    for(int i=1;i<=n;i++){
       a*=i;
    }
    cout<<a<<endl;
    return 0;
}

C++: #include<stdio.h>

int main(void){

	int n, fac;
	
	scanf("%d", &n);
	
	if(n>=1 && n<=20){
		fac = n;
		fac = fac * (n-1);
		n = n-2;
		
		while(n>1){
			fac = fac * n;
			n = n-1;
		}
	
		printf("%d", fac);
	}
	
	return 0;
	
}

C++: #include<iostream>
using namespace std;
int main(){
	long long n,b;
	std::cin>>n;
	b=1;
	for(int i=0 ;i<n ; i++)   b *= n -i ;
	std::cout<<b<<endl;
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main(){
	int n,k=1;
	cin>>n;
	for(int i=1;i<=n;i++){
		k*=i;
	}
	cout<<k<<endl;
	return 0;
	}

C++: #include<iostream>
using namespace std;

int main() {
	int n;
	long long d=1;
	cin >> n;
	for (int i = 0; i < n; i++){
		d *= (i + 1);
	}
	cout << d << endl;
	
}

C++: #include <iostream>
using namespace std;

int main()
{
  int n
  long long ans;
  cin >> n;
  ans = 1;
  for (int i = 1; i <= n; i++){
    ans *= i;
  }
  cout << ans << endl;
  return 0;
}

C++: #include<stdio.h>
int fact(int n){
    if(n>1)
    return n*fact(n-1);
    return 1;
}
main(){
int x;
    scanf("%d",&x)
    printf("%d\n",fact(x));
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n;
	long long int a = 1;
	cin >> n;
	for(int i = n; i > 0; i--){
		a *= i;
	}

	cout << a << endl;

	return 0;
}

C++: #include <cstdio>
#include <iostream>

int main(void)
{
    int n;
    unsigned long long ans = 1;

    scanf("%d", &n);
    
    for (int i = n; 0 < i; i--){
        ans *= i;
    }
    printf("%llu\n", ans);
    
}

C++: #include<iostream>
using namespace std;

int main(){
    
    int n;
    
        int x = 1;
        cin >> n;
        for(int i = n;i>0;i--){
            x *= i;
        }

        cout << x << endl;
    
    return 0;
    
}