puts (r=1..._=eval(*$<)).map{|i|r.map{|j|"%3s"%(i*j).to_s(_).upcase}*""}