h, w = gets.split.map(&:to_i)
hw = []
h.times{|i|
  hw[i] = gets.chomp
}
r, c = gets.split.map(&:to_i)
rc = []
r.times{|i|
  rc[i] = gets.chomp
}

exit if r > h || c > w

0.upto(h-r){|i|
  0.upto(w-c){|j|
    if hw[i][j,c] == rc[0] then
      flag = true # it is candidate
      (1).upto(c-1){|k|
        unless hw[i+k][j,c] == rc[k] then
          flag = false
          break
        end
      }
      puts "#{i} #{j}" if flag
    end
  }
}