def cal_num(n): if n == 1: return 1 else: return n*cal_num(n-1) while True: try: num = int(input()) print(cal_num(num)) except EOFError: break