#P176. 【例29.3】 求小数的某一位

【例29.3】 求小数的某一位

Description

What is the nn-th digit after the decimal point when the fraction ab\frac{a}{b} is converted to a decimal number?

Input Format

Three positive integers aa, bb, and nn, separated by spaces. 0<a<b<1000 < a < b < 100, 1n100001 \le n \le 10000.

Output Format

A single digit.

Sample

1 2 1
5