A, B = map(int, input().split()) n, r = divmod(A, B) f = [] for i in range(50): q, r = divmod(r*10, B) f.append(q) print('{:d}.{:s}'.format(n, ''.join(map(str, f))))