s = gets.chomp h = %w[I l O o].zip(%w[1 1 0 0]).to_h puts s.each_char.map { |e| h[e] || e }.join