f = 1
n = 1
while f < 10**79:
    n += 1
    f *= n
print(n)