read str
ary=(`echo $str`)
x=${ary[0]}
y=${ary[1]}
cnt=${cnt:=0}

if [ "$y" -lt "$x" ]; then
    x=$(( $x * -1 ))
    cnt=$(( $cnt + 1 ))
fi
while [ "$x" -lt "$y" ]
do
  x=$(( $x + 1 ))
  cnt=$(( $cnt + 1 ))
  if [ $(( $x * -1 )) -eq "$y" ]; then
    cnt=$(( $cnt + 1 ))
    break
  fi
done
echo $cnt