numbers: ugly (dp and simple)