water~~~
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[]) {
int max, min;
while(scanf("%d%d",&max,&min)==2)
{
int even=0, odd=0;
if(max < min)
{
int temp = max;
max = min;
min = temp;
}
for(int i=min; i <= max; i++)
{
if(i&1)
{
odd += i*i*i;
}
if(!(i&1))
{
even += i*i;
}
}
printf("%d %d\n",even,odd);
}
return 0;
}