import strutils, sequtils, algorithm, future {.warning[SmallLshouldNotBeUsed]: off.} when isMainModule: var input = stdin.readLine.split.map(parseInt) (a, b) = (input[0], input[1]) ans = newSeq[int]() for i in 0..a: for j in 0..b: if i + j != 0: ans.add(i + j*5) ans.sort(cmp) ans = ans.deduplicate() for i in ans: echo i