A, B = map(int, input().split()) A *= 10**50 C = str(A//B) print(C, len(C), C[:-50], C[-50:]) if len(C) > 50: print(C[:-50] + '.' + C[-50:]) else: print('0.' + '0' * (50 - len(C)) + C)