#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; int c=b/a; int d=c/3; int e=c+d; printf("%d",e); return 0; }