#include int main(void) { double x, y; scanf("%lf%lf", &x, &y); printf("%.8lf", x+y/3); return 0; }