model deal with digit