A data feed emits records as lines of text, and downstream consumers must see
each distinct record exactly once, in the order it FIRST appeared.
Print each distinct line the first time it appears, skipping later repeats.
Comparison is exact (case-sensitive, whitespace-sensitive).
Input Format:
Line 1: n (number of lines)
Lines 2 to n+1: one record per line
Output Format:
The distinct records, one per line, in first-appearance order.