int main(void)
{
    f = 1;
    i = 1;
    cin >> n;
    while(i <= n)
    {
        f = f * i;
        i = i + 1;
    }
    cout << f;
}
