gets a=gets.split(" ").map{|e| e.to_i} ans="" 8.downto(0){|i| ans+=(i+1).to_s*a[i] } puts ans