naive implementation of ChefDigits