a, b = map(int,input().split()) arr = set([]) s = 0 for i in range(b+1) : s5 = i * 5 for j in range(a+1) : s = s5 + j arr.add(s) arr.remove(0) arr = sorted(arr) for k in arr : print(k)