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