import math
def int(n):
x=1
for k in range(n):
x = x*k
return x
print(int(30))
print(math.factorial(30))
aW1wb3J0IG1hdGgKCgpkZWYgaW50KG4pOgogIHg9MQogIGZvciBrIGluIHJhbmdlKG4pOiAKICAgIHggPSB4KmsKICByZXR1cm4geAoKcHJpbnQoaW50KDMwKSkKCnByaW50KG1hdGguZmFjdG9yaWFsKDMwKSk=