n = int(input()) l = list() for i in range(n+1): for j in range(n+1): l.append(2**i * 5**j) l.sort() print(*l, sep='\n')