# include<iostream> using namespace std; int main(){ int m,q,j,g; cin>>q>>m; j=m/q; g=j/3*1+j; cout<<g; return 0; }