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