#include <bits/stdc++.h> using namespace std; int main() { double all,a; int b; cin>>a>>b; all=a; for (int i=1;i<=b;i++) { all+=sqrt(i+all); } printf("%2f",all); return 0; }