A registry stores package versions as MAJOR.MINOR.PATCH strings (three
non-negative integers). Sort them in ascending version order — numerically
per component, NOT alphabetically (1.2.10 comes after 1.2.2).
Input Format:
Line 1: n (number of versions)
Lines 2 to n+1: one version string per line
Output Format:
The versions in ascending order, one per line, in their original string
form.