#include #include int f(double R) { int cnt=0; double y; for (double x=0;xy) break; if ((ceil(x)==floor(x))&&(ceil(y)==floor(y))){ if((x==0)||(y==0)) cnt+=4; else if (x==y) cnt+=4; else cnt+=8; } } return cnt; } int main() { double a,b; scanf("%lf %lf", &a, &b); int maxf=0; for (double i=a;i<=b;i++){ int c=f(i); if(c>maxf) { maxf=c; } } printf("%d\n",maxf); }