def ascan; gets.split.map(&:to_i);end A,B = ascan if A.odd? && B.odd? p 0 else p (B-A+3)/3 end