# on importe la fonction log (logarithme népérien)
from math import log

n = 1
u = 2*log(2)-1
d = abs( u - log(n) )

while d >= 0.001:
    n = n+1
    u = (n+1)*log(n+1)-n*log(n)-1
    d = abs( u - log(n) )

print(n)
