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>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

long factorial (long n){
	
	if (n == 0 || n == 1){
		return 1;
	} // end if
	return n*factorial(n-1);
}

int main()
{
	string str = "";

	while (getline (cin, str )){
		long res;
		long n;
		stringstream ssn(str);
		ssn >> n;
		res = factorial(n);
		cout << res << endl;	
	} // end while
		
	return 0;
}

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


int main(void){


    long long int n,fact = 1;

    cin >> n;

    for(int i = n;i > 0;i--){
        fact *= i;
    }

    cout << fact << endl;
    return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int n,i;
	long long int sum;

	sum=1;

	scanf("%d",&n);

	for(i=1;i<=n;i++){
		sum*=1;
	}
	
	printf("%lld\n",sum);

	return 0;
}

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

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

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

long long factorial( long long n )
{
    if( n == 1 )
        return 1;
    else
        return n * factorial( n - 1 );
}

int main()
{
    long long n;

    cin >> n;

    cout << factorial(n) << endl;
    return 0;
}

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

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

C++: #include <stdio.h>

int main() {
    long long n = 0;
    long long result = 1;
    scanf("%d", &n);

    for (long long i = n; 1 < i; --i) {
        result *= i;
    }

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

    return 0;
}

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

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

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

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

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

int main(){
  int f=1;
  int i;

  cin >> i;

  while(i>0){
    f*=i;
    i--;
  }
  cout << f << "\n";

  return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>

int main(void)
{
  int n = 0;
  std::cin >> n;
  
  unsigned int fact = 1;
  
  for (int i = 1; i <= n; i++) {
    fact *= i;
  }
  
  std::cout << fact;
  
  return 0;
}

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

int factorial(int n) {
   if (n == 0)
      return 1;
   else
      return (n * factorial(n-1));
}


int main()
{
    long long int num;

    cin >> num;

    cout << factorial((int) num);

    return 0;
}

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

C++: #include <stdio.h>

int main(void) {                                                                                                                                                                                  
        int n = 0;                                                                                                                                                                                
        scanf("%d", &n);                                                                                                                                                                          
        long ret = 1;                                                                                                                                                                             
        for (; n > 0; n--) {                                                                                                                                                                      
                ret *= n;                                                                                                                                                                         
        }                                                                                                                                                                                         
        printf("%ld\n", ret);                                                                                                                                                                     
                                                                                                                                                                                                  
        return 0;                                                                                                                                                                                 
}

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

C++: #include <bits/stdc++.h>
using namespace std;
int main ()
{
    long long int n,i,fact=1;
    cin>>n;
    while (n!=0)
    {
        fact*=n;
        n--;
    }
    cout<<fact<<endl;
}

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

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

C++: #include<iostream>
#include<stdio.h>

using namespace std;

int factorial(int n) {

	return (n > 0 ? n*factorial(n - 1) : 1);

}

int main() {
	int n;
	scanf_s("%d", &n);
	
	printf("%d \n", factorial(n));

	return 0;
}

C++: #include<cstdio>
int f(int n){return n==0?1:n*f(n-1);}
int main(){
  int n;scanf("%d",&n);printf("%d\n",f(n));
}

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

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

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

C++: #include<iostream>
using namespace std;
typedef unsigned long long ull;

ull fact(int n){return n>1?n*fact(n-1):1;}
int main(){
	int n;
	cin>>n;
	cout<<fact(n)<<endl;
}

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

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
#include <functional>
#include <queue>
#include <stack>
#include <cmath>
#define INF 100000000
#define MOD 1000000007
using namespace std;


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

C++: #include <iostream>

using namespace std;

int fact(long n);

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

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

C++: #include <cstdio>
#include <cstdlib>
#include <algorithm>

using namespace std;

int a;
long long int hasil; 

int main()
{
	
	hasil=1; 
	scanf("%lld",&a);
	for(int loop=a;loop>=1;loop--)
	{
		hasil=hasil*loop;
	}
	printf("%lld",hasil);
	return 0; 
}