# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
import math
if __name__ == "__main__":
    a=int(raw_input())
    print math.factorial(a)
