#K69082. Bread Production Verification

    ID: 33007 Type: Default 1000ms 256MiB

Bread Production Verification

Bread Production Verification

You are given two lists. The first list contains the days you need to check for bread production, and the second list contains the designated production days of the week. Your task is to determine for each day in the check list whether bread is produced on that day. Print "Yes" if bread is produced on that day, and "No" otherwise.

Input Details: The input starts with the number of days to check, followed by the list of days. Then you are given the number of production days and the corresponding list of production days. Use this information to produce the required output.

Note: All input is taken from standard input and all output should be written to standard output.

inputFormat

The input is read from standard input and follows this format:

  1. An integer D indicating the number of days to check.
  2. D space-separated integers representing the days to check.
  3. An integer P representing the number of production days.
  4. P space-separated integers representing the production days (if P > 0; otherwise this line may be empty).

For example:

3 1 3 5 2 1 5

outputFormat

For each of the D days provided in the input, output a single line containing "Yes" if the day is a production day, otherwise output "No".## sample

3
1 3 5
2
1 5
Yes

No Yes

</p>