#include<bits/stdc++.h> using namespace std; int main() { int n; double a,b; cin>>a>>b>>n; a/=b; string s = to_string(a); cout<<s[n+1]; return 0; }