#include<iostream> using namespace std; int main(){ int a,b,z=0; cin>>a>>b; z=b/a; z+=z/3; cout<<z; return 0; }