#include<bits/stdc++.h> using namespace std; double x; int n; double f(double x, int n) { if (n == 1) { return 1 + x; } else { // cout<<n<<" "<<x<<endl; return n + f(x, n - 1); } } int main() { cin >> x >> n; printf("%.2f", f(x, n)) ; return 0; }