#include <iostream> using namespace std; int main(){ int a,b,c,d,f; cin>>a>>b>>c; for(f = 1;f <= c;f ++){ a *= 10; d = a/b; a %= b; } if(a == 1 and b == 1 and c == 1){ cout<<0; return 0; } else{ cout<<d<<endl; } return 0; }