gets;a,b=$<.map(&:split).transpose;puts b-a