LearnPy Hub
← Matplotlib Charts problems
Medium

Legend Labels

Read n, then n lines of label y1 y2 .... Plot each line with its label, add a legend and print the legend's texts on one line.

Input

n, then n lines.

Output

One line.

Sample 1

Input
2
2025 1 2 3
2026 2 3 4
Output
2025 2026

Sample 2

Input
1
sales 5 6
Output
sales
solution.py
Output appears here
Legend Labels · Python practice problem · LearnPy Hub