#include int main() { int a, b; int c = 0; scanf("%d%d",&a,&b); for (int i = a;i <= b;i++) { if (!((a + b + i) % 3)) c++; } printf("%d\n",c); }