A large cube is painted on all six faces and then cut into a certain number of smaller but identical cubes. It was found that among the smaller cubes, there were eight cubes which had no face painted at all. How many smaller cubes was the original large cube cut into?