w,h,c=gets.split w=w.to_i h=h.to_i Array.new(w*h+1) {|_| c = (c.ord ^ 21).chr}[1..-1].each_slice(3).to_a.map{|x| x * ""}.each {|w| puts w}