#include using namespace std; int A,B; int main(){ cin>>A>>B; int t=0; for(int i=A;i<=B;i++) if((A+B+i)%3==0) t++; cout<