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