Comparison of Numbers Using Digits