h,w=gets.split.map(&:to_i)
m=$<.map{|s|s.chomp.split('')}
rw=Array.new(h).map(&:to_s)

m.each_with_index do |e, i|
  e.each do |ii|
  end
end

m.each_with_index do |e, i|
  e.each do |ii|
  end
end

m.each_with_index do |e, i|
  e.each do |ii|
  end
end

m.each_with_index do |e, i|
  e.each do |ii|
  end
end
