Find the K-Beauty of a Number