This page is still under construction.

Parts of this page are still being built. What you see may change.

Factorial

Time limit1sMemory limit256 MB

Summary
Print the factorial of a given integer N, where N is between 0 and 12.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

An integer NN greater than or equal to 0 is given. Write a program that prints N!N!.

N!N! is the product of every integer from 1 to NN, and 0!=10! = 1.

Input

The first line contains an integer NN (0≤N≤120 \le N \le 12).

Output

Print N!N! on the first line.

Examples2

  1. Example 1

    Input
    10
    
    Expected output
    3628800
    
  2. Example 2

    Input
    0
    
    Expected output
    1