w,h,c=gets.split.map(&: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}