#include<bits/stdc++.h> using namespace std; int main(){ int a,b,n=0; cin>>a>>b; n=b/a; n+=n/3; cout<<n; return 0; }