#include <stdio.h>
int main ()
{
long long int a ,b ,x ;
while (scanf ("%lld %lld",&a, &b) == 2)
{
x = b-a ;
if (a<b) printf ("%lld\n",x) ;
else printf ("%lld\n",-x);
}
return 0 ;
}
int main ()
{
long long int a ,b ,x ;
while (scanf ("%lld %lld",&a, &b) == 2)
{
x = b-a ;
if (a<b) printf ("%lld\n",x) ;
else printf ("%lld\n",-x);
}
return 0 ;
}