a=Hash.new 1 ~/\$/^a[$`]*=$'.hex while gets a.map{|u|puts"%s$%x"%u}