yourmom = [] values= int(input()) for n in range (values): numbers = int(input()) yourmom.append(numbers)
threshold = int(input())
for i in yourmom: if i <= threshold: print(i, end=",")