$a=<>-3e9;$\=($b<$\?$b:$\)-$a+($b=$\,$a=$_)for sort{$a-$b}glob<>;print