def solve():

    import sys

    file_input = sys.stdin

    

    N, M, Q = map(int, file_input.readline().split())

    

    student = list(range(N))

    exemption = [1] * N

    pos = 0

    for a in map(int, file_input.readline().split()):

        if a % 2:

            pos = (pos - a) % len(student)

        else:

            pos = (pos + a) % len(student)

        s = student[pos]

        exemption[s] = 0

        del student[pos]

    

    question = map(int, file_input.readline().split())

    print(*map(lambda x:exemption[x], question), sep = '\n')



solve()

def solve():

    import sys

    file_input = sys.stdin

    

    N, M, Q = map(int, file_input.readline().split())

    

    from collections import deque

    student = deque(range(N))

    exemption = [1] * N

    for a in map(int, file_input.readline().split()):

        if a % 2:

            student.rotate(a)

        else:

            student.rotate(-a)

        s = student.popleft()

        exemption[s] = 0

    

    question = map(int, file_input.readline().split())

    print(*map(lambda x: exemption[x], question), sep = '\n')



solve()

def solve():
    import sys

    file_input = sys.stdin
    N, M, Q = map(int, file_input.readline().split())
    student = list(range(N))
    exemption = [1] * N
    pos = 0
    for a in map(int, file_input.readline().split()):
        if a % 2:
            pos = (pos - a) % len(student)
        else:
            pos = (pos + a) % len(student)
        s = student[pos]
        exemption[s] = 0
        del student[pos]
    question = map(int, file_input.readline().split())
    print(*map(lambda x: exemption[x], question), sep="\n")


solve()

def solve():
    import sys

    file_input = sys.stdin
    N, M, Q = map(int, file_input.readline().split())
    from collections import deque

    student = deque(range(N))
    exemption = [1] * N
    for a in map(int, file_input.readline().split()):
        if a % 2:
            student.rotate(a)
        else:
            student.rotate(-a)
        s = student.popleft()
        exemption[s] = 0
    question = map(int, file_input.readline().split())
    print(*map(lambda x: exemption[x], question), sep="\n")


solve()

-    student = list(range(N)) +    from collections import deque + +    student = deque(range(N)) -    pos = 0 -            pos = (pos - a) % len(student) +            student.rotate(a) -            pos = (pos + a) % len(student) -        s = student[pos] +            student.rotate(-a) +        s = student.popleft() -        del student[pos]