DEBUG = false 

input = $stdin.gets.chomp.split( /\s/ ).map{ |n| n.to_i }
n_val = input[ 0 ]
m_val = input[ 1 ]
q_val = input[ 2 ]
m_list = $stdin.gets.chomp.split( /\s/ ).map{ |n| n.to_i }
q_list = $stdin.gets.chomp.split( /\s/ ).map{ |n| n.to_i }

students = Array.new
n_val.times{ |n|
	students << n
}

batton  = 0
leftnum = n_val
m_list.each{ |p|
	if p % 2 == 0
		nextbatton = (batton + p) % leftnum
	else
		nextbatton = (batton - p) % leftnum
	end

	printf( "delete batton index = %d(th)\n", nextbatton ) if DEBUG
	students.delete_at( nextbatton )
	p students if DEBUG
	leftnum -= 1
	#batton = nextbatton + 1
	batton = nextbatton % leftnum
	printf( "\nnext batton index = %d(th)\n", batton ) if DEBUG
}

q_list.each{ |q|
	if students.include?( q )	
		puts "1"
	else
		puts "0"
	end
}
