#include <stdlib.h> int main() { int a,b,n,c; scanf("%d %d %d",&a,&b,&n); a=a*10; while(n>=1) { c=a/b; a=a%b*10; n--; } printf("%d",c); return 0; }