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