Python复制__import__('sys').set_int_max_str_digits(100000000);print(__import__('functools').reduce((lambda x, y: x * y), range(1, int(input()) + 1)))