#include<bits/stdc++.h>
using namespace std;
int main(){
double a,b,y,x;
cin>>x>>y;
a=x*2.5;
b=y*1.5;
cout<<fixed<<setprecision(1)<<a+b-2.5<<endl;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
double a,b,y,x;
cin>>x>>y;
a=x*2.5;
b=y*1.5;
cout<<fixed<<setprecision(1)<<a+b-2.5<<endl;
return 0;
}