#include using namespace std; int main() { int m, n; cin >> m >> n; double ans = 1.0 * n / 3 + m; printf("%.12f\n", ans); return 0; }