from math import exp
			
n = 0
u = 0
			
while u < 1.999:
	n = n + 1
	u = 2 - (n+2)*exp(-n)
			
print( n )
