from functools import reduce
import operator


def fact(k: int) -> int:
    """Simple factorial.

    >>> fact(1)
    1
    >>> fact(2)
    2
    >>> fact(3)
    6
    >>> fact(4)
    24
    """
    if k < 2:
        return 1
    return reduce(operator.mul, range(2,k+1))