#include using namespace std; typedef long long ll; #define REP(i,n) for(int i=0;i> M >> N; printf("%.9f\n", (double)(M + N / 3)); return 0; }