#P4920. Future Program

    ID: 18161 Type: Default 1000ms 256MiB

Future Program

Future Program

In the year 2047, on the eve of the 64th National Youth Informatics Winter Camp, B faced a challenge when he recalled a problem from the 32nd Winter Camp in 2015 titled "Future Program."

This is a submit-answer problem with 10 test points in total. For each test case, you are given the source code of a program and its input. Your task is to run the program and capture its output. Unfortunately, these programs are extremely inefficient, and they cannot produce an output within the contest's 5-hour limit, i.e., within \(5\text{ hours}\).

Your mission is to help B obtain the outputs that he dreamed about. Note that the input is structured to provide the program's source code (which you can ignore) and the actual input that the program should process. You are required to output the program input (which, in B's dream, is equal to the program's output).

inputFormat

The input consists of two parts:

  1. The first part begins with an integer \(L\) indicating the number of lines of the program's source code. This is followed by \(L\) lines of code. The source code is provided for context only and does not affect the result.
  2. The second part begins with an integer \(K\) representing the number of lines of input for the program. This is followed by \(K\) lines which represent the input that the program would process.

outputFormat

Output the \(K\) lines corresponding to the program's input exactly as they appear.

sample

2
print("Hello")
print("World")
3
A
B
C
A

B C

</p>