Columns
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a table n × n, filled with integers. Peter finds the column good, if it contains number x. For each column find out is it good.
Input
First line contains number x that does not exceed 2 *10^9
by absolute value. Second line contains number n (1 ≤ n ≤ 100). Each of the following n lines contains n integers that do not exceed 2 *10^9
by absolute value - the numbers in table cells.
Output
For each column print on a separate line YES, if it contains number x, and NO otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 3K
Acceptance rate 57%