n = int(input("Digite o valor de N: "))
e = 1
i = 1
while (i <= n):
fat = 1
j = 1
while (j <= i):
fat = fat * j
j = j + 1
e = e + 1 / fat
i = i + 1
print()
print("Valor de E =", e)
biA9IGludChpbnB1dCgiRGlnaXRlIG8gdmFsb3IgZGUgTjogIikpCmUgPSAxCmkgPSAxCndoaWxlIChpIDw9IG4pOgogIGZhdCA9IDEKICBqID0gMQogIHdoaWxlIChqIDw9IGkpOgogICAgZmF0ID0gZmF0ICogagogICAgaiA9IGogKyAxCiAgZSA9IGUgKyAxIC8gZmF0CiAgaSA9IGkgKyAxCnByaW50KCkKcHJpbnQoIlZhbG9yIGRlIEUgPSIsIGUp