#include<bits/stdc++.h>
using namespace std;
int main(){
	int x,y;
	float h=0;
	cin>>x>>y;
	h=(x-1)*2.5+y*1.5;
	printf("%.1f",h);
}
/**************************************************************
	Problem: 1603
	User: linmiaoling
	Language: C++
	Result: Accepted
	Time:9 ms
	Memory:2072 kb
****************************************************************/