n = int(input()) clap = ['3','6','9'] for i in range(1,n+1): count = 0 for k in str(i): if k in clap: count += 1 if count > 0: print('{}'.format('-' * count), end=' ') else: print('{}'.format(i), end=' ')