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