import math
n = int(input())
a = []
for i in range(n):
    a.append(int(input()))
for i in range(max(a)):
    print(i)
print(a)

5fefacde36d88b946d4b46ff13ef236f31c5a0c5
<mask token>

<mask token>
for i in range(n):
    a.append(int(input()))
for i in range(max(a)):
    print(i)
print(a)

<mask token>
n = int(input())
a = []
for i in range(n):
    a.append(int(input()))
for i in range(max(a)):
    print(i)
print(a)

import math
n = int(input())
a = []
for i in range(n):
    a.append(int(input()))
for i in range(max(a)):
    print(i)
print(a)
