Pasha has two hamsters: Arthur and Alexander. Pasha put n apples in front of them. Pasha knows which apples Arthur likes. Similarly, Pasha knows which apples Alexander likes. Pasha doesn't want any conflict between the hamsters (as they may like the same apple), so he decided to distribute the apples between the hamsters on his own. He is going to give some apples to Arthur and some apples to Alexander. It doesn't matter how many apples each hamster gets but it is important that each hamster gets only the apples he likes. It is possible that somebody doesn't get any apples.

Help Pasha distribute all the apples between the hamsters. Note that Pasha wants to distribute all the apples, not just some of them.


-----Input-----

The first line contains integers n, a, b (1 ≤ n ≤ 100; 1 ≤ a, b ≤ n) — the number of apples Pasha has, the number of apples Arthur likes and the number of apples Alexander likes, correspondingly.

The next line contains a distinct integers — the numbers of the apples Arthur likes. The next line contains b distinct integers — the numbers of the apples Alexander likes.

Assume that the apples are numbered from 1 to n. The input is such that the answer exists.


-----Output-----

Print n characters, each of them equals either 1 or 2. If the i-h character equals 1, then the i-th apple should be given to Arthur, otherwise it should be given to Alexander. If there are multiple correct answers, you are allowed to print any of them.


-----Examples-----
Input
4 2 3
1 2
2 3 4

Output
1 1 2 2

Input
5 5 2
3 4 1 2 5
2 3

Output
1 1 1 1 1

Difficulty: interview

Starter code:

Solutions:
n, a, b = list(map(int, input().split()))
arthurs = list(map(int, input().split()))
alexanders = list(map(int, input().split()))
ans = []

for i in range(1, n + 1):
    if i in arthurs:
        ans.append('1')
    else:
        ans.append('2')

print(' '.join(ans))


from sys import stdin

n, a, b = list(map(int, stdin.readline().split()))
apples1 = list(map(int, stdin.readline().split()))
apples2 = list(map(int, stdin.readline().split()))
for i in range(1, n + 1):
    if i in apples1:
        print(1, end = " ")
    else:
        print(2, end = " ")


n, a, b = tuple(map(int, str.split(input())))
a_s = set(map(int, str.split(input())))
b_s = set(map(int, str.split(input())))

def yoba(n, a_s, b_s):

    for i in range(1, n + 1):

        yield 1 if i in a_s else 2

print(str.join(" ", list(map(str, yoba(n, a_s, b_s)))))


n, a, b = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
used = [0] * n
for i in range(a):
    used[A[i] - 1] = 1
for i in range(b):
    if used[B[i] - 1] == 0:
        used[B[i] - 1] = 2
print(*used)

__author__ = 'Lipen'

def main():
    n, a, b = map(int, input().split())
    A = list(map(int, input().split()))
    B = list(map(int, input().split()))

    s = ''
    for i in range(1, n+1):
        if i in A:
            s += '1 '
        else:
            s += '2 '
    
    print(s[:-1])

main()

n = int(input().split()[0])
A = [int(s)-1 for s in input().split()]
for i in range(n):
    print( ('1' if (i in A) else '2') , end = ' ' if (i != n-1) else '')
print( '\n' )

n,a,b=map(int,input().split())


A=list(map(int,input().split()))

B=list(map(int,input().split()))

for i in range(n):
    if(i+1 in A):
        print(1,end=" ")
    else:
        print(2,end=" ")


read=lambda:map(int,input().split())
n,a,b=read()
p1=list(read())
p2=list(read())
ans=[0]*n
for x in p1:
    ans[x-1]=1
for x in p2:
    if ans[x-1]==0:
        ans[x-1]=2
print(' '.join(map(str,ans)))

n,a,b=map(int,input('').split())
a=list(map(int,input('').split()))
b=list(map(int,input('').split()))
for i in range(1,n+1):print(('1' if (i in a) else '2'),end=" ")


n, a, b = tuple(map(int,input().split()))
nr1 = list(map(int,input().split()))
nr2 = list(map(int,input().split()))
for i in range(1,n+1):
    if i in nr1:
        print('1',end=' ')
    else:
        print('2',end=' ')

n, a, b = map(int, input().split())
otv = [2] * 101
s1 = list(map(int, input().split()))
s2 = list(map(int, input().split()))
s1 = sorted(s1)
s2 = sorted(s2)
for i in range(a):
    otv[s1[i]] = 1
for i in range(1, n + 1):
    print(otv[i], end = ' ')

R = lambda: list(map(int, input().split()))
G = lambda: map(int, input().split())
n, a, b = G()
A = R()
B = R()
result = [-1 for i in range(n + 1)]
for i in range(a):
    result[A[i]] = 1
for i in range(1, n + 1):
    if result[i] == -1:
        result[i] = 2
for i in range(1, n + 1):
    print(result[i], end = ' ')

(n,a,b)=map(int, input().split())
s=''
a=list(map(int, input().split()))
b=list(map(int, input().split()))
for i in range(1,n+1):
    if i in a:
        s+='1 '
    else:
        s+='2 '
print(s)

R = lambda: map(int, input().split())
n, a, b = R()

T = lambda: list(map(int, input().split()))
A = T()
B = T()
ans = [-1 for i in range(n + 1)]
for i in range(a):
    ans[A[i]] = 1
for i in range(1, n + 1):
    if ans[i] == -1:
        ans[i] = 2
for i in range(1, n + 1):
    print(ans[i], end = ' ')


n,a,b=list(map(int,input().split()))
A=set(map(int,input().split()))
B=set(map(int,input().split()))
for i in range (1,n+1):
	if i in A:
		print(1,end='')
		print(' ',end='')
	else:
		print(2,end='')
		print(' ',end='')

from sys import stdin

__author__ = 'artyom'


def read_next_line():
  return list(map(int, stdin.readline().strip().split()))


n, a, b = read_next_line()
p, q = read_next_line(), read_next_line()
ans = []
for i in range(1, n + 1):
  ans.append(1 if i in p else 2)

print(' '.join(map(str, ans)))

n, a, b = list(map(int, input().split()))
v = ['2'] * n
for x in input().split():
    v[int(x) - 1] = '1'
print(' '.join(v))


n,a,b = list(map(int,input().split()))
a_list = input().split()
b_list = input().split()
ans = ["-1"]*n
for i in range(n):
    if a_list.count(str(i+1)):
        ans[i] = "1"
    else:
        ans[i] = "2"
print(" ".join(ans))