import strutils, algorithm, math let N = stdin.readLine.parseInt var dic = newSeq[int]() for i in 0 .. N: var v = 2 ^ i for j in 0 .. N: dic.add v * 5 ^ j for v in dic.sorted(cmp): echo v