#include using namespace std; int main () { ios::sync_with_stdio(false); int a,b; while (cin>> a>> b){ deque> stack; long long num=0; for(int i=0;i> num; double sum=0,start=0; long long cerpadla=1; while(!stack.empty()){ double pom=cerpadla*b*(stack.front().first-start); if (sum+pom>num){ break; }else{ sum+=pom; cerpadla+=stack.front().second; start=stack.front().first; stack.pop_front(); } } double pom=num-sum; start+=pom/(cerpadla*b*1.0); stack.push_front({start,cerpadla}); } cout<