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|
  offset = 0
  loop do
    j = hw[i].index(rc[0], offset)
    break if j == nil
    offset = j+1
    flag = true # it is candidate
    (1).upto(r-1){|k|
      unless hw[i+k][j,c] == rc[k] then
        flag = false
        break
      end
    }
    puts "#{i} #{j}" if flag
  end
}