UVA 136 - Ugly Number