#include<bits/stdc++.h>
using namespace std;
int main(){
int a,s;
float d,k;
cin>>a>>s;
d=(s*(a*100000000/1000))/100000000.0;
k=(d+a/1.0);
printf("%.4f",k);
}
/**************************************************************
Problem: 1446
User: tonghuawei
Language: C
Result: Compile Error
****************************************************************/