# your code goes here
while True:
try:
a,b=[int(x) for x in input().split()]
print(abs(b - a))
except EOFError:
break
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCndoaWxlIFRydWU6CiAgICB0cnk6CiAgICAgICAgYSxiPVtpbnQoeCkgZm9yIHggaW4gaW5wdXQoKS5zcGxpdCgpXQogICAgICAgIHByaW50KGFicyhiIC0gYSkpCiAgICBleGNlcHQgRU9GRXJyb3I6CiAgICAgICAgYnJlYWs=