a=[i for i in range(1,16) if i%13 != 0]
for i in a:
    print(i, end=' ')