#!ruby -an a=$F.map(&:to_i) a=(0..3).map{|i|(a[i]-a[i-3]).abs}while puts(a*" ")||a.max>0 puts