#include <math.h>
using namespace std;
float f(float x,int n)
{
static float a = 1, b = 1, c, sum=1;
int i;
for (int j = 1; j <= n; j++)
{
for (int i = j; i <= n; i++)
{
a = a*x;
b = b*i;
c = a / b;
break;
}
sum = sum + c;
}
return sum;
}
float main()
{
float x, s;
int n;
cin >> x >> n;
s = f(x, n);
cout << "s=" << s << endl;
return 0;
}
using namespace std;
float f(float x,int n)
{
static float a = 1, b = 1, c, sum=1;
int i;
for (int j = 1; j <= n; j++)
{
for (int i = j; i <= n; i++)
{
a = a*x;
b = b*i;
c = a / b;
break;
}
sum = sum + c;
}
return sum;
}
float main()
{
float x, s;
int n;
cin >> x >> n;
s = f(x, n);
cout << "s=" << s << endl;
return 0;
}
