#include #include using namespace std; int main(){ double a,b; scanf("%lf%lf",&a,&b); printf("%.20lf\n",(a*3+b)/3); return 0; }