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