#include using namespace std; #define ll long long #define rep(i,l,r) for(ll i=(l);i<(r);i++) int main(){ cin.tie(0); ios::sync_with_stdio(false); int a,b,c=0; cin>>a>>b; for(int i=a;i<=b;i++){ if((a+b+i)%3==0)c++; } cout<