#include using namespace std; int main() { double M, N; cin >> M >> N; cout << fixed << setprecision(10) << M + N / 3 << endl; }