#include <iostream>
int main() {
int number = 109001231 , digits = 0;
int temp = number;
while( temp > 0 )
{
temp /= 10;
++digits;
}
std::cout << number << " is " << digits << " digits." << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKSB7CglpbnQgbnVtYmVyID0gMTA5MDAxMjMxICwgZGlnaXRzID0gMDsKCWludCB0ZW1wID0gbnVtYmVyOwoJd2hpbGUoIHRlbXAgPiAwICkKCXsKCQl0ZW1wIC89IDEwOwoJCSsrZGlnaXRzOwoJfQoJCglzdGQ6OmNvdXQgPDwgbnVtYmVyIDw8ICIgaXMgIiA8PCBkaWdpdHMgPDwgIiBkaWdpdHMuIiA8PCBzdGQ6OmVuZGw7CglyZXR1cm4gMDsKfQ==