#!/usr/bin/env python3 # NOTE: it is recommended to use this even if you don't understand the following code. N, K = map(int, input().strip().split()) P = list(map(int, input().strip().split())) L = list(map(int, input().strip().split())) # insert your code here ans = [42] * N # print the result print(*ans)