import math
X, Y = (int(x) for x in input().split())
print(math.ceil(max(Y - X, 0) / 10))

d7be982fa40f0b756e278e16fbc054d1ee462be7
<mask token>

<mask token>
print(math.ceil(max(Y - X, 0) / 10))

<mask token>
X, Y = (int(x) for x in input().split())
print(math.ceil(max(Y - X, 0) / 10))

import math
X, Y = (int(x) for x in input().split())
print(math.ceil(max(Y - X, 0) / 10))
