puts"hkl".chars.map{|l|(~/(-?)(2?)#{l}/&&$1+($2+?1)[0]).to_i}*" "while gets