#include <bits/stdc++.h> using namespace std; int main(){ int a,b,n; cin>>a>>b>>n; for(int i=1;i<=n;i++) { a=a*10%b; }cout<<a*10/b; return 0; }