n = int(input()) ar=[] for i in range(n+1): for j in range(n+1): ar.append(2**i*5**j) ar.sort() print('\n'.join(map(str,ar)))