#include <stdio.h>
#define abs(i) ((i)>0 ? (i) : (-i))
int main () {
long long int out=0,in0=0,in1=0;
while(scanf ("%lld %lld", &in0, &in1)==2){
out = abs((in0-in1));
printf ("%lld\n", out);
break;
}