class Student
  attr_accessor("prev", "next", "value")
  
  def initialize
    self.value = 1
  end
end

n, m, q  = gets.split(" ").map(&:to_i)
students = Array.new(n)
(0..n-1).each {|i|
  students[i] = Student.new
}

students[n-1].prev, students[n-1].next = students[n-2], students[0]
(0..n-2).each {|i|
  students[i].prev, students[i].next   = students[i-1], students[i+1]
}

student = students[0]
as = gets.split(" ").map(&:to_i)
as.each {|a|
  if a%2 == 1
    a.times {student = student.prev}
  else
    a.times {student = student.next}
  end
  student.value = 0
  (student.prev).next = student.next
  (student.next).prev = student.prev
  student = student.next
}

qs = gets.split(" ").map(&:to_i)
qs.each {|q|
  p students[q].value
}