import strutils,sequtils var A,B : int b : int five = newSeq[int](0) ans = newSeq[int](0) (A,B) = stdin.readline.split.map(parseInt) for i in 0..B: five.add(i * 5) if A < 5: for b in five: for j in 0..A: ans.add(b + j) else: for b in five: for j in 0..4: ans.add(b + j) b = five[^1] for j in 5..A: ans.add(b + j) for a in ans[1..ans.high]: echo a