#include<iostream>
using namespace std;
int main()
{
double u = 1.0;
double e = 1.0;
int n = 1;
while (e >= 1.0e-7)
{
e = e / n;
u = u + e;
n++;
}
cout << "e=" << u << "(n="<<n<<")"<<endl;
return 0;
}