#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double x, y;
cin >> x >> y;
double z = (-x - 4*y)/3
cout << fixed << setprecision(5) << z;
return 0;
}
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double x, y;
cin >> x >> y;
double z = (-x - 4*y)/3
cout << fixed << setprecision(5) << z;
return 0;
}