import algorithm, sequtils, strutils let a: seq[int] = stdin.readline.split.map(parseInt) var tmp: int ans: seq[int] for i in 0..a[0]: for j in 0..a[1]: if i == 0 and j == 0: continue tmp = i + 5 * j if(ans.count(tmp) == 0): ans.add(tmp) ans.sort() for i in ans: echo i