a, b = map(int, input().split()) amounts = set() for k in range(b + 1): base = 5 * k for m in range(a + 1): total = base + m if total > 0: amounts.add(total) for amount in sorted(amounts): print(amount)