Modify UglyNumbers