import sys
from decimal import Decimal, getcontext
ii=sys.stdin.readline
a, b= ii().rstrip().split()
c = int(ii())
getcontext().prec = c
# 1.
print(f'%.{c}f' %(Decimal(f'{a}')/Decimal(f'{b}')))
# 2.
print(format(Decimal(f'{a}')/Decimal(f'{b}'), f'.{c}f'))
# 3.
num = Decimal(f'{a}')/Decimal(f'{b}')
print(f'{num:.{c}f}')
getcontext().prec = c
: 무한소수가 계속 찍히도록