#include <iostream>
using namespace std;

int main (){
    int a,b,c;
    for(int x = a; x<= b; x++ ){
      cin >> a >> b >> c;
      if( c%x == 0 ){
          cout << a.size (x) << endl;
      }  
    }
    return 0;
}  

