This program prints good number for a specific no of digits