#55060: 長除法解法


jasoncccc (jasoncccc)


while True:
    try:
        a ,b,n = map(int,input().split())
        right = ""
        left = a//b
        reminder = a%b
        for i in range(n):
            a = reminder *10
            q = a//b
            reminder = a%b
            right +=str(q)
        
        print(f"{left}.{right}")
    except:
        break