python function that returns ABCD numbers.