#include #define rep(i,a,b) for(int i=int(a);i<=int(b);++i) using namespace std; templatevoid pr(A a){cout << (a) << endl;} templatevoid pr(A a,B b){cout << a << " " ;pr(b);} templatevoid pr(A a,B b,C c){cout << a << " " ;pr(b,c);} templatevoid pr(A a,B b,C c,D d){cout << a << " " ;pr(b,c,d);} typedef long long ll; typedef pair l_l; typedef pair i_i; int INF=numeric_limits::max(); // for(int j=0;j>d1>>d2; if(d2/2 > d1) { pr(0); } else if(d2/2==d1) { pr(4); } else if(d2 > d1) { pr(8); } else if(d2==d1) { pr(4); } else if(d2 < d1){ pr(0); } return 0; }