#include <stdio.h>

int main(void) {
	unsigned long long int n, m, resposta, tmp;

	while (scanf("%llu %llu", &n, &m)!=EOF) {
		if (n>m) {
			tmp=m;
			m=n;
			n=tmp;
		}
		resposta=m-n;
		printf("%llu\n", resposta);
	}

	return 0;
}

