input = gets 
input2 = gets
arr = input.split(" ")
arr2 = input2.split(" ")

p arr[0]
p arr2[0]

a = arr[0].to_i
b = arr2[0].to_i



if (a-b) >= 1 then
  print 1
elsif (a-b) <= -1 then
  
  print 1
else 
  print 0
end