#include using namespace std; int main(){ int m,n; cin>>m>>n; printf("%.9f",m+n/3.); return 0; }