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