t = float(input()) n = float(int(input())) ans = t / n ans2 = 2 * n print('%.3f' % ans) print(int(ans2))