A teacher was doing some calculation exercise on the blackboard. When the teacher went out, a naughty student Chunmun erased some of the numbers written on the blackboard. Now, it appeared like this
When teacher entered the room, he realized that still, this calculation was right, but in some other system of writing (i.e., not 10). How many digits are there in that system?