print("Enter the range, values separated by comma:") [a,b] = [int(z) for z in input().split(',')] odd = set('13579') l = [] for n in range(a, b + 1): # If there are only even digits, the set is disjoint with odd: if odd.isdisjoint(set(str(n))): l.append(n) print(*l, sep=',')