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