#include <stdio.h>
int aaa(int n1, int n2)
{
int a;
n1=n1*n1;
n2=n2*n2;
if(n1>n2)
a=n1-n2;
else
a=n2-n1;
printf("%d", a);
}
int main(void)
{
int n1, n2;
scanf(" %d %d", &n1, &n2);
aaa(n1, n2);
return 0;
}
int aaa(int n1, int n2)
{
int a;
n1=n1*n1;
n2=n2*n2;
if(n1>n2)
a=n1-n2;
else
a=n2-n1;
printf("%d", a);
}
int main(void)
{
int n1, n2;
scanf(" %d %d", &n1, &n2);
aaa(n1, n2);
return 0;
}