#include<stdio.h> int main(){ long a,b; while(scanf("%ld%ld",&a,&b)!=EOF){ printf("%ld",a>b?a-b:b-a); } return 0; }